Documentation ¶
Index ¶
- type ConnectionHandler
- type Gateway
- func (g *Gateway) CapabilitiesStore() capabilities.BackendStore
- func (g *Gateway) ClusterHealthStatus(ref *corev1.Reference) (*corev1.HealthStatus, error)
- func (g *Gateway) ListenAndServe(ctx context.Context) error
- func (g *Gateway) MustRegisterCollector(collector prometheus.Collector)
- func (g *Gateway) StorageBackend() storage.Backend
- func (g *Gateway) TLSConfig() *tls.Config
- type GatewayGRPCServer
- type GatewayHTTPServer
- type GatewayOption
- type GatewayOptions
- type MetricsEndpointHandler
- type StreamServer
- type UnaryService
- type UnknownUnaryMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionHandler ¶ added in v0.5.4
type Gateway ¶
type Gateway struct { GatewayOptions // contains filtered or unexported fields }
func NewGateway ¶
func NewGateway(ctx context.Context, conf *config.GatewayConfig, pl plugins.LoaderInterface, opts ...GatewayOption) *Gateway
func (*Gateway) CapabilitiesStore ¶
func (g *Gateway) CapabilitiesStore() capabilities.BackendStore
Implements management.CapabilitiesDataSource
func (*Gateway) ClusterHealthStatus ¶ added in v0.5.4
Implements management.HealthStatusDataSource
func (*Gateway) MustRegisterCollector ¶
func (g *Gateway) MustRegisterCollector(collector prometheus.Collector)
func (*Gateway) StorageBackend ¶
Implements management.CoreDataSource
type GatewayGRPCServer ¶ added in v0.5.4
type GatewayGRPCServer struct { streamv1.UnsafeStreamServer // contains filtered or unexported fields }
func NewGRPCServer ¶ added in v0.5.4
func NewGRPCServer( cfg *v1beta1.GatewayConfigSpec, lg *zap.SugaredLogger, opts ...grpc.ServerOption, ) *GatewayGRPCServer
func (*GatewayGRPCServer) ListenAndServe ¶ added in v0.5.4
func (s *GatewayGRPCServer) ListenAndServe(ctx context.Context) error
func (*GatewayGRPCServer) RegisterService ¶ added in v0.5.4
func (s *GatewayGRPCServer) RegisterService(desc *grpc.ServiceDesc, impl any)
type GatewayHTTPServer ¶ added in v0.5.4
type GatewayHTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶ added in v0.5.4
func NewHTTPServer( ctx context.Context, cfg *v1beta1.GatewayConfigSpec, lg *zap.SugaredLogger, pl plugins.LoaderInterface, ) *GatewayHTTPServer
func (*GatewayHTTPServer) ListenAndServe ¶ added in v0.5.4
func (s *GatewayHTTPServer) ListenAndServe(ctx waitctx.RestrictiveContext) error
type GatewayOption ¶
type GatewayOption func(*GatewayOptions)
func WithLifecycler ¶
func WithLifecycler(lc config.Lifecycler) GatewayOption
type GatewayOptions ¶
type GatewayOptions struct {
// contains filtered or unexported fields
}
type MetricsEndpointHandler ¶
type MetricsEndpointHandler struct {
// contains filtered or unexported fields
}
func NewMetricsEndpointHandler ¶
func NewMetricsEndpointHandler(cfg v1beta1.MetricsSpec) *MetricsEndpointHandler
func (*MetricsEndpointHandler) ListenAndServe ¶
func (h *MetricsEndpointHandler) ListenAndServe(ctx context.Context) error
func (*MetricsEndpointHandler) MustRegister ¶
func (h *MetricsEndpointHandler) MustRegister(collectors ...prometheus.Collector)
type StreamServer ¶ added in v0.5.4
type StreamServer struct { streamv1.UnsafeStreamServer // contains filtered or unexported fields }
func NewStreamServer ¶ added in v0.5.4
func NewStreamServer(handler ConnectionHandler, lg *zap.SugaredLogger) *StreamServer
func (*StreamServer) AddRemote ¶ added in v0.5.4
func (s *StreamServer) AddRemote(cc *grpc.ClientConn, services []*descriptorpb.ServiceDescriptorProto) error
func (*StreamServer) Connect ¶ added in v0.5.4
func (s *StreamServer) Connect(stream streamv1.Stream_ConnectServer) error
func (*StreamServer) RegisterService ¶ added in v0.5.4
func (s *StreamServer) RegisterService(desc *grpc.ServiceDesc, impl any)
type UnaryService ¶ added in v0.5.4
type UnaryService struct {
// contains filtered or unexported fields
}
func NewUnaryService ¶ added in v0.5.4
func NewUnaryService() UnaryService
func (*UnaryService) Handler ¶ added in v0.5.4
func (u *UnaryService) Handler( srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor, ) (interface{}, error)
func (*UnaryService) RegisterUnaryPlugins ¶ added in v0.5.4
func (u *UnaryService) RegisterUnaryPlugins(ctx waitctx.RestrictiveContext, s grpc.ServiceRegistrar, pl plugins.LoaderInterface)
type UnknownUnaryMetadata ¶ added in v0.5.4
type UnknownUnaryMetadata struct { Conn *grpc.ClientConn InputType *desc.MessageDescriptor OutputType *desc.MessageDescriptor }
Click to show internal directories.
Click to hide internal directories.