|  | před 1 rokem | |
|---|---|---|
| .idea | před 1 rokem | |
| configs | před 1 rokem | |
| global | před 1 rokem | |
| model | před 1 rokem | |
| protobuf | před 1 rokem | |
| simple_zap | před 1 rokem | |
| utils | před 1 rokem | |
| README.md | před 1 rokem | |
| go.mod | před 1 rokem | |
| go.sum | před 1 rokem | |
| main.go | před 1 rokem | 
This is a demo server written in go for exhook
protoc
For installation instructions, see
Protocol Buffer Compiler Installation.Go plugins for the protocol compiler:
Install the protocol compiler plugins for Go using the following commands:
export GO111MODULE=on  # Enable module mode
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
Update your PATH so that the protoc compiler can find the plugins:
export PATH="$PATH:$(go env GOPATH)/bin"
Try to compile the *.proto files:
protoc --go_out=. --go_opt=paths=source_relative \
    --go-grpc_out=. --go-grpc_opt=paths=source_relative \
    protobuf/exhook.proto
Run server
go run main.go