mirror of
https://github.com/hanzozt/sdk-golang.git
synced 2026-10-30 14:46:37 +00:00
- adds message types for HA - adds oidc auth, token refresh support - adds oidc auth flows - adds config support for multiple controllers
803 B
803 B
Prerequisites
- Install the protoc binary from: https://github.com/protocolbuffers/protobuf/releases
- Install the protoc plugin for Go
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest - Ensure
protocis on your path. - Ensure your Go bin directory is on your path
Generate Go Code
Two options, run the command manually or use go generate
Go Generate
- Navigate to the root project directory
sdk-golang - run
go generate ./pb/edge_client_pb/...orgo generate /pb/edge_client_pb/...
Note: Running a naked go generate will trigger all go:generate tags in the project, which you most likely do not want
Manually
- Navigate to the project root
- Run:
protoc -I ./pb/ ./pb/edge_client_pb/edge_client.proto --go_out=./pb/edge_client_pb