Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a gRPC-Gateway server that bridges gRPC services with HTTP/REST clients.
func NewServer ¶
NewServer creates and configures a new gRPC Gateway server.
Communication with the gRPC server takes place via a unix socket (GRPCSocketPath field in grpcserver.Config structure).
When configuring the connection, аn unary client logging interceptor are used (see ... for details).
func (*Server) SetHTTPHandler ¶
func (s *Server) SetHTTPHandler(fn func(m *grpc_runtime.ServeMux) http.Handler)
SetHTTPHandler allows replacing the default HTTP handler with a custom one.
The handler should not change after the server starts.
func (*Server) SetServiceBuckets ¶
SetServiceBuckets sets a list of buckets used by the gRPC Gateway server to discover and register target services for serving.
The list should not change after the server starts.