Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dhrp/grpc-rest-go-example
/ functions
Functions
30 in github.com/dhrp/grpc-rest-go-example
⨍
Functions
30
◇
Types & classes
5
↓ 4 callers
Method
Echo
(ctx context.Context, in *EchoMessage, opts ...grpc.CallOption)
echo-proto/service.pb.go:68
↓ 4 callers
Method
Hello
(ctx context.Context, in *EchoMessage, opts ...grpc.CallOption)
echo-proto/service.pb.go:67
↓ 1 callers
Function
NewEchoServiceClient
(cc *grpc.ClientConn)
echo-proto/service.pb.go:75
↓ 1 callers
Function
RegisterEchoServiceHandler
RegisterEchoServiceHandler registers the http handlers for service EchoService to "mux". The handlers forward requests to the grpc endpoint over "conn
echo-proto/service.pb.gw.go:88
↓ 1 callers
Function
RegisterEchoServiceHandlerClient
RegisterEchoServiceHandler registers the http handlers for service EchoService to "mux". The handlers forward requests to the grpc endpoint over the g
echo-proto/service.pb.gw.go:97
↓ 1 callers
Function
getRestMux
getRestMux initializes a new multiplexer, and registers each endpoint - in this case only the EchoService
server/main.go:58
↓ 1 callers
Function
grpcHandlerFunc
grpcHandlerFunc returns an http.Handler that delegates to grpcServer on incoming gRPC connections or otherHandler otherwise. Copied from cockroachdb.
server/main.go:89
↓ 1 callers
Function
makeGRPCServer
(certPool *x509.CertPool)
server/main.go:43
↓ 1 callers
Function
request_EchoService_Echo_0
(ctx context.Context, marshaler runtime.Marshaler, client EchoServiceClient, req *http.Request, pathParams map
echo-proto/service.pb.gw.go:48
↓ 1 callers
Function
request_EchoService_Hello_0
(ctx context.Context, marshaler runtime.Marshaler, client EchoServiceClient, req *http.Request, pathParams map
echo-proto/service.pb.gw.go:35
Method
Descriptor
()
echo-proto/service.pb.go:43
Method
Echo
(ctx context.Context, in *EchoMessage, opts ...grpc.CallOption)
echo-proto/service.pb.go:88
Method
Echo
(context.Context, *EchoMessage)
echo-proto/service.pb.go:101
Method
Echo
implements echo function of EchoServiceServer
server/main.go:34
Method
GetBody
()
echo-proto/service.pb.go:45
Function
GetCert
How to generate your own self-signed certificate: openssl req -newkey rsa:2048 -nodes -keyout server.key -x509 -days 365 -out server.crt GetCert retur
certificates/util.go:19
Method
Hello
(ctx context.Context, in *EchoMessage, opts ...grpc.CallOption)
echo-proto/service.pb.go:79
Method
Hello
(context.Context, *EchoMessage)
echo-proto/service.pb.go:100
Method
Hello
implements hello function of EchoServiceServer
server/main.go:28
Method
ProtoMessage
()
echo-proto/service.pb.go:42
Function
RegisterEchoServiceHandlerFromEndpoint
RegisterEchoServiceHandlerFromEndpoint is same as RegisterEchoServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx
echo-proto/service.pb.gw.go:63
Function
RegisterEchoServiceServer
(s *grpc.Server, srv EchoServiceServer)
echo-proto/service.pb.go:104
Method
Reset
()
echo-proto/service.pb.go:40
Method
String
()
echo-proto/service.pb.go:41
Function
_EchoService_Echo_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
echo-proto/service.pb.go:126
Function
_EchoService_Hello_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
echo-proto/service.pb.go:108
Function
init
()
echo-proto/service.pb.go:52
Function
main
()
client/main.go:20
Function
main
()
server/main.go:99
Function
simpleHTTPHello
(w http.ResponseWriter, r *http.Request)
server/main.go:39