Documentation ¶
Index ¶
- func WithHttpMiddlewares(middlewares ...HttpMiddlewareHandler) httpMiddlewares
- func WithLogger(log logger.Logger) withLog
- func WithMaxCallRecvMsgSize(msgSize int) maxCallRecvMsgSize
- func WithServeMuxOption(serveMuxOpts ...pkgruntime.ServeMuxOption) serveMuxOption
- func WithTransportCredentials(tc credentials.TransportCredentials) clientTransportCredentials
- type GatewayHandlerFunc
- type HTTPGatewayServer
- func (h *HTTPGatewayServer) AddRoutes(routes ...*Route) error
- func (h *HTTPGatewayServer) ListenAndServe() error
- func (h *HTTPGatewayServer) RegisterHandlers(handlerfuncs ...GatewayHandlerFunc) error
- func (h *HTTPGatewayServer) Shutdown(ctx context.Context) error
- func (h *HTTPGatewayServer) WaitForSIGTERM() error
- type HTTPGatewayServerConfig
- type HTTPGatewayServerConfigOption
- type HttpGatewayServerConfigurer
- type HttpMiddlewareHandler
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithHttpMiddlewares ¶
func WithHttpMiddlewares(middlewares ...HttpMiddlewareHandler) httpMiddlewares
func WithLogger ¶
func WithMaxCallRecvMsgSize ¶
func WithMaxCallRecvMsgSize(msgSize int) maxCallRecvMsgSize
func WithServeMuxOption ¶
func WithServeMuxOption(serveMuxOpts ...pkgruntime.ServeMuxOption) serveMuxOption
func WithTransportCredentials ¶
func WithTransportCredentials(tc credentials.TransportCredentials) clientTransportCredentials
Types ¶
type GatewayHandlerFunc ¶
type GatewayHandlerFunc func(ctx context.Context, mux *pkgruntime.ServeMux, conn *grpc.ClientConn) error
type HTTPGatewayServer ¶
type HTTPGatewayServer struct {
// contains filtered or unexported fields
}
func NewHTTPGatewayServer ¶
func NewHTTPGatewayServer(g *grpcserver.GrpcServer, log logger.Logger, port int, configurers ...HttpGatewayServerConfigurer) (*HTTPGatewayServer, error)
func (*HTTPGatewayServer) AddRoutes ¶
func (h *HTTPGatewayServer) AddRoutes(routes ...*Route) error
func (*HTTPGatewayServer) ListenAndServe ¶
func (h *HTTPGatewayServer) ListenAndServe() error
func (*HTTPGatewayServer) RegisterHandlers ¶
func (h *HTTPGatewayServer) RegisterHandlers(handlerfuncs ...GatewayHandlerFunc) error
func (*HTTPGatewayServer) Shutdown ¶
func (h *HTTPGatewayServer) Shutdown(ctx context.Context) error
func (*HTTPGatewayServer) WaitForSIGTERM ¶
func (h *HTTPGatewayServer) WaitForSIGTERM() error
type HTTPGatewayServerConfig ¶
type HTTPGatewayServerConfig struct {
// contains filtered or unexported fields
}
type HTTPGatewayServerConfigOption ¶
type HTTPGatewayServerConfigOption func(c *HTTPGatewayServerConfig)
type HttpGatewayServerConfigurer ¶
type HttpGatewayServerConfigurer interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.