package
0.0.0-20220207103309-2eef10dda485
Repository: https://github.com/csunny/argo.git
Documentation: pkg.go.dev
# README
生成gRPC代码
protoc -I grpc grpc/hello.proto --go_out=plugins=grpc:grpc
1. generate grpc stub
protoc -I/usr/local/include -I. \
-I$GOPATH/src \
-I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--go_out=plugins=grpc:. \
--grpc-gateway_out=logtostderr=true:. \
./hello.proto
2. Generate reverse-proxy
protoc -I/usr/local/include -I. \
-I$GOPATH/src \
-I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--grpc-gateway_out=logtostderr=true:. \
./hello.proto
protoc -I/usr/local/include -I. \
-I$GOPATH/src \
-I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--grpc-gateway_out=logtostderr=true:. \
./hello.proto
# Functions
No description provided by the author
RegisterGreeterHandler registers the http handlers for service Greeter to "mux".
RegisterGreeterHandlerClient registers the http handlers for service Greeter to "mux".
RegisterGreeterHandlerFromEndpoint is same as RegisterGreeterHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
No description provided by the author
# Structs
The response message containing the greetings.
The request message containing the user's name.
# Interfaces
No description provided by the author
No description provided by the author