Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cuigh/protoc-gen-auxo
Code generator of auxo RPC from Protocol Buffers service definition files.
https://github.com/cuigh/protoc-gen-auxo
auxo protobuf rpc
Last synced: 11 days ago
JSON representation
Code generator of auxo RPC from Protocol Buffers service definition files.
- Host: GitHub
- URL: https://github.com/cuigh/protoc-gen-auxo
- Owner: cuigh
- License: mit
- Created: 2018-02-01T08:00:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T07:16:34.000Z (over 1 year ago)
- Last Synced: 2024-11-23T01:25:42.803Z (2 months ago)
- Topics: auxo, protobuf, rpc
- Language: Go
- Size: 22.5 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# protoc-gen-auxo
**auxo** RPC support many codecs, if you use **Protocol Buffers** codec, you can generate contract codes from [Protocol Buffers](https://developers.google.com/protocol-buffers/docs/proto3) service definition files with **protoc-gen-auxo**.
## Install
Use `go install` to install the code generator:
```bash
go install github.com/cuigh/protoc-gen-auxo@latest
```You will also need:
* [protoc](https://github.com/google/protobuf), the protobuf compiler. You need version 3+.
* [protoc-gen-go](https://github.com/golang/protobuf/), the Go protobuf generator plugin. Get this with `go get github.com/golang/protobuf/protoc-gen-go`.## Usage
Just like **grpc**:
```bash
protoc --go_out=. --auxo_out=. --go_opt=paths=source_relative --auxo_opt=paths=source_relative hello.proto
```Service interfaces and client proxies were generated into a separate file `[name].auxo.go`:
```
hello.auxo.go
hello.pb.go
hello.proto
```