3.1.5-9 • Published 2 years ago
infinimesh-proto v3.1.5-9
infinimesh API Proto
This repo containes protobuf files and Go generated code for the infinimesh APIs.
Install
Go
At your project(where go.mod is):
go get github.com/infinimesh/proto@latestNode (Connect ES)
Install protoc before going further: manual
# Clone repo
git clone git@github.com:infinimesh/proto.git
cd infinimesh-proto
# Install generators
npm i
npm run generateHow to use
Generating
- Clone this repo
- Navigate to cloned repo directory
Docker
Just run:
docker run -it \
-v $(pwd):/go/src/github.com/infinimesh/proto \
ghcr.io/infinimesh/proto/buf:latestBuf
Set up buf, follow Dockerfile for additional dependencies.
Run buf generate
How to generate code for you language
Check according module for buf, add it to buf.gen.yaml, run buf generate.
If you're generating using Docker, you'd have to build image first.