mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 23:32:02 +00:00
4abeaa0c0a
* Make terminator creation asynchronous
* Make terminator creation idempotent
* Improve logging
* Add some timer logging and metrics.
* controller and router will both log their respective views of how long the terminator create took
* the router has a new xgress_edge_tunnel.terminator.create_time timer metric
Prerequisites
- Install the protoc binary from: https://github.com/protocolbuffers/protobuf/releases
- Install the protoc plugin for Go
go get -u github.com/golang/protobuf/protoc-gen-go - 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
edge - run
go generate ./pb/edge_ctrl_pb/...orgo generate .\pb\edge_ctrl_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/edge_ctrl_pb/ ./pb/edge_ctrl_pb/edge_ctrl.proto --go_out=./pb/edge_ctrl_pb