MCPcopy Create free account

hub / github.com/dhrp/grpc-rest-go-example / functions

Functions30 in github.com/dhrp/grpc-rest-go-example

↓ 4 callersMethodEcho
(ctx context.Context, in *EchoMessage, opts ...grpc.CallOption)
echo-proto/service.pb.go:68
↓ 4 callersMethodHello
(ctx context.Context, in *EchoMessage, opts ...grpc.CallOption)
echo-proto/service.pb.go:67
↓ 1 callersFunctionNewEchoServiceClient
(cc *grpc.ClientConn)
echo-proto/service.pb.go:75
↓ 1 callersFunctionRegisterEchoServiceHandler
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 callersFunctionRegisterEchoServiceHandlerClient
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 callersFunctiongetRestMux
getRestMux initializes a new multiplexer, and registers each endpoint - in this case only the EchoService
server/main.go:58
↓ 1 callersFunctiongrpcHandlerFunc
grpcHandlerFunc returns an http.Handler that delegates to grpcServer on incoming gRPC connections or otherHandler otherwise. Copied from cockroachdb.
server/main.go:89
↓ 1 callersFunctionmakeGRPCServer
(certPool *x509.CertPool)
server/main.go:43
↓ 1 callersFunctionrequest_EchoService_Echo_0
(ctx context.Context, marshaler runtime.Marshaler, client EchoServiceClient, req *http.Request, pathParams map
echo-proto/service.pb.gw.go:48
↓ 1 callersFunctionrequest_EchoService_Hello_0
(ctx context.Context, marshaler runtime.Marshaler, client EchoServiceClient, req *http.Request, pathParams map
echo-proto/service.pb.gw.go:35
MethodDescriptor
()
echo-proto/service.pb.go:43
MethodEcho
(ctx context.Context, in *EchoMessage, opts ...grpc.CallOption)
echo-proto/service.pb.go:88
MethodEcho
(context.Context, *EchoMessage)
echo-proto/service.pb.go:101
MethodEcho
implements echo function of EchoServiceServer
server/main.go:34
MethodGetBody
()
echo-proto/service.pb.go:45
FunctionGetCert
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
MethodHello
(ctx context.Context, in *EchoMessage, opts ...grpc.CallOption)
echo-proto/service.pb.go:79
MethodHello
(context.Context, *EchoMessage)
echo-proto/service.pb.go:100
MethodHello
implements hello function of EchoServiceServer
server/main.go:28
MethodProtoMessage
()
echo-proto/service.pb.go:42
FunctionRegisterEchoServiceHandlerFromEndpoint
RegisterEchoServiceHandlerFromEndpoint is same as RegisterEchoServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx
echo-proto/service.pb.gw.go:63
FunctionRegisterEchoServiceServer
(s *grpc.Server, srv EchoServiceServer)
echo-proto/service.pb.go:104
MethodReset
()
echo-proto/service.pb.go:40
MethodString
()
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
Functioninit
()
echo-proto/service.pb.go:52
Functionmain
()
client/main.go:20
Functionmain
()
server/main.go:99
FunctionsimpleHTTPHello
(w http.ResponseWriter, r *http.Request)
server/main.go:39