Communicated module of LifeGamer.
- Install dependencies
# grpc
go get -u google.golang.org/grpc
# protobuf plugin
go get -u github.com/golang/protobuf/protoc-gen-go- Setup compiler plugin, protoc-gen-go
export PATH=$PATH:$GOPATH/bin- support category:
- event
# compile event's pb
protoc -I proto/<category> proto/<category>/<spec>.proto --go_out=plugins=grpc:proto-<category>src/tools:protoc.exe: executable protobuf compiler for windows.
- Server start first:
$ go run src/comm_engine.go- Then activate client:
$ go run test/dummy_client.go- Kevin Cyu, kevinbird61@gmail.com