protobuf/README.md
This project uses Protocol Buffers to define the messages used by ecapture.
The generated Go code lives under protobuf/gen, and the source .proto files
are under protobuf/proto.
Make sure you have the following tools installed:
protoc (Protocol Buffers compiler)protoc-gen-goprotoc-gen-go-grpcThe current generated files were built with:
protoc-gen-go v1.36.6
protoc v6.32.1
It is recommended to use these versions or newer when regenerating the code.
From the repository root directory, run:
protoc --proto_path=protobuf/proto \
--go_out=protobuf/gen --go_opt=paths=source_relative \
--go-grpc_out=protobuf/gen --go-grpc_opt=paths=source_relative \
protobuf/proto/v1/ecaptureq.proto
This command will:
.proto files from protobuf/protoprotobuf/gen with paths relative to the sourceAfter regenerating, commit the updated files under protobuf/gen/v1.