Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GatewayMux ¶
GatewayMux creates a gateway multiplexer for serving the API as an OpenAPI endpoint.
func NewGatewayServer ¶
func NewGatewayServer( log *zerolog.Logger, cfg *config.Common, gtwMux *runtime.ServeMux, registry promclient.Registerer, ) (*http.Server, error)
NewGatewayServer creates a new gateway server.
Types ¶
type GRPCRegistrations ¶
GRPCRegistrations represents a function that can register API implementations to the GRPC server.
func CoreServiceRegistrations ¶
func CoreServiceRegistrations( implAuthorizerServer *impl.AuthorizerServer, ) GRPCRegistrations
type HTTPRouteRegistrations ¶
HTTPRouteRegistrations represents a function that can register any custom http handler for HTTP server.
type HandlerRegistrations ¶
type HandlerRegistrations func(ctx context.Context, mux *runtime.ServeMux, grpcEndpoint string, opts []grpc.DialOption) error
HandlerRegistrations represents a function that can register handlers for the GRPC Gateway.
type HealthServer ¶
HealthServer contains everything we need to be able to serve a health status endpoint.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddGRPCServerOptions ¶
func (s *Server) AddGRPCServerOptions(grpcOptions ...grpc.ServerOption)
Adds Server Options to the GRPC server, for example GRPC Unary and Stream middlewares.
func (*Server) RegisterServer ¶
Registers additional servers to the app, for example, metrics server.