Buf generated gRPC and Connect API
npm install infinimesh-protoThis repo containes protobuf files and Go generated code for the infinimesh APIs.
At your project(where go.mod is):
``shell`
go get github.com/infinimesh/proto@latest
> Install protoc before going further: manual
`shellClone repo
git clone git@github.com:infinimesh/proto.git
cd infinimesh-proto
How to use
$3
1. Clone this repo
2. Navigate to cloned repo directory
#### Docker
Just run:
`shell
docker run -it \
-v $(pwd):/go/src/github.com/infinimesh/proto \
ghcr.io/infinimesh/proto/buf:latest
`#### Buf
buf, follow Dockerfile for additional dependencies.Run
buf generateHow 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.