protoc-gen-auxo

command module
v0.0.0-...-016c5de Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 13 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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