tree: 980bed155109f4c106e512bdf0ea8cc5575b99bd [path history] [tgz]
  1. mocks/
  2. eventmesh-client.pb.go
  3. eventmesh-client.proto
  4. eventmesh-client_grpc.pb.go
  5. README.md
runtime/proto/pb/README.md

how to generate proto go files

generate go files by the protoc-gen-go owned by Google

  1. install the latest protoc-gen-go and protoc-gen-go-grpc
go install google.golang.org/protobuf/cmd/protoc-gen-go
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
  1. run command
protoc --go_out=. eventmesh-client.proto
protoc --go-grpc_out=. eventmesh-client.proto

if you use the latest version protoc-gen-go, and generate by the old command, you will got these error:

--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC