Skip to content
Snippets Groups Projects
Select Git revision
  • afaee6e99a4a7738ec77eb83f756b30b9972e5ae
  • release default protected
  • master protected
  • hotfix/GrpcParameters
  • XX-4441
  • tls-websockets
  • hotfix/allow-web-creds
  • hotfix/nilCert
  • XX-3566_const_time_token_compare
  • AceVentura/AccountBackup
  • dev
  • waitingRoundsRewrite
  • fullRateLimit
  • XX-3564/TlsCipherSuite
  • XX-3563/DisableTlsCheck
  • notls
  • url-repo-rename
  • perftuning
  • Anne/CI2
  • AddedGossipLogging
  • hotfix/connectionReduction
  • v0.0.6
  • v0.0.4
  • v0.0.5
  • v0.0.3
  • v0.0.2
  • v0.0.1
27 results

comms

xx_network/comms

pipeline status coverage report

Generating messages.pb.go

First, ensure protoc is installed and get 1.22.0 (as of this writing) of protoc-gen-go:

go get -u github.com/golang/protobuf/protoc-gen-go

Run the following command in the base project directory (assuming you've set gRPC up correctly):

cd messages
protoc -I. messages.proto --go_opt=paths=source_relative --go_out=plugins=grpc:../messages/
cd ..

Note that /path/to/gitlab.com is required to generate correct import lines. This lib needs to be checked out inside of the /path/to/gitlab.com/xx_network/comms folder.

cd interconnect
protoc -I. interconnect.proto -I/path/to/gitlab.com --go_opt=paths=source_relative --go_out=plugins=grpc:../interconnect/
cd ../gossip
protoc -I. gossip.proto --go_opt=paths=source_relative --go_out=plugins=grpc:../gossip/
cd ..