Skip to content

Code generator of auxo RPC from Protocol Buffers service definition files.

License

Notifications You must be signed in to change notification settings

cuigh/protoc-gen-auxo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protoc-gen-auxo

auxo RPC support many codecs, if you use Protocol Buffers codec, you can generate contract codes from Protocol Buffers service definition files with protoc-gen-auxo.

Install

Use go install to install the code generator:

go install github.com/cuigh/protoc-gen-auxo@latest

You will also need:

  • protoc, the protobuf compiler. You need version 3+.
  • protoc-gen-go, the Go protobuf generator plugin. Get this with go get github.com/golang/protobuf/protoc-gen-go.

Usage

Just like grpc:

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

About

Code generator of auxo RPC from Protocol Buffers service definition files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages