Skip to content
Snippets Groups Projects
Select Git revision
  • a667162c07c7e9a49affbccbd4b7dc6b8ed098aa
  • 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

  • Clone with SSH
  • Clone with HTTPS
  • 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 ..