Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
func NewGateway ¶
func NewGateway(log *zap.Logger, opts ...GatewayOption) *Gateway
func (*Gateway) ConnectAndRegister ¶
type GatewayOption ¶
type GatewayOption func(*Gateway)
func WithRegistrableServices ¶
func WithRegistrableServices(basePath string, services ...RegistrableService) GatewayOption
type RegistrableService ¶
type RegistrableService interface {
RegisterGateway(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
}
RegistrableService describes a service implementation that can be registered in the gRPC-Gateway server. gRPC service server implementations must implement this interface in order to be registered in gRPC-Gateway.
Click to show internal directories.
Click to hide internal directories.