protocol

module
v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2024 License: Apache-2.0

README

TerrAPI Protocol

Current Tag Lint Status Go Reference

Overview

This project shares a protobuf models with all TerrAPI projects.

Prerequisites

  • Go 1.16 or later
  • Protocol Buffers compiler (protoc)
  • protoc-gen-go and protoc-gen-go-grpc plugins

Installation

Install the Protocol Buffers compiler (protoc):

# On Ubuntu
sudo apt-get install -y protobuf-compiler

# On macOS
brew install protobuf

Install the Go plugins for Protocol Buffers:

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

Ensure the protoc-gen-go and protoc-gen-go-grpc binaries are in your PATH:

export PATH="$PATH:$(go env GOPATH)/bin"

Generating Code

To generate the Go code from the Protocol Buffers definitions, run the following script:

On Unix-based systems:

./gen.sh

On Windows:

gen.cmd

Security

If you discover a security vulnerability within this package, please send an e-mail to contact@thomas-illiet.fr

Contributing

Fork -> Patch -> Push -> Pull Request

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.

Directories

Path Synopsis
activity
v1
deployment
v1
health
v1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL