grpc-contrib

module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0

README

gRPC Contrib

Gen proto

protoc --proto_path=.:$GOPATH/src --go_out=plugins=grpc:. proto/service.proto
使用protoc-gen-hb-grpc
# install
go get -u github.com/hb-go/grpc-contrib/protoc-gen-hb-grpc
# Registry
protoc --proto_path=.:$GOPATH/src --hb-grpc_out=plugins=registry:. proto/service.proto

# 自定义后缀名,默认.hb.grpc.go
protoc --proto_path=.:$GOPATH/src --hb-grpc_out=plugins=registry,suffix=.hb.grpc.go:. proto/service.proto

Directories

Path Synopsis
log
zap
protoc-gen-hb-grpc is a plugin for the Google protocol buffer compiler to generate Go code.
protoc-gen-hb-grpc is a plugin for the Google protocol buffer compiler to generate Go code.
generator
The code generator for the plugin for the Google protocol buffer compiler.
The code generator for the plugin for the Google protocol buffer compiler.
generator/internal/remap
Package remap handles tracking the locations of Go tokens in a source text across a rewrite by the Go formatter.
Package remap handles tracking the locations of Go tokens in a source text across a rewrite by the Go formatter.

Jump to

Keyboard shortcuts

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