Skip to content

5064/gRPC-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gRPC-demo

Generate protobuffer from .proto file

$ go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
$ go get -u google.golang.org/grpc
$ protoc -I=./api --go_out=plugins=grpc:./api ./api/language.proto

Run server (required running test database)

$ go run server/main.go

Send request

$ go run client/main.go 'japan'
$ go run client/main.go 'china'
$ go run client/main.go 'united states'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages