gateway

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServerOption

type APIServerOption func(*APIServerOptions)

func WithAPIExtensions

func WithAPIExtensions(plugins []APIExtensionPlugin) APIServerOption

func WithAuthMiddleware

func WithAuthMiddleware(name string) APIServerOption

func WithFiberMiddleware

func WithFiberMiddleware(middlewares ...FiberMiddleware) APIServerOption

func WithMetricsPlugins

func WithMetricsPlugins(plugins []MetricsPlugin) APIServerOption

type APIServerOptions

type APIServerOptions struct {
	// contains filtered or unexported fields
}

func (*APIServerOptions) Apply

func (o *APIServerOptions) Apply(opts ...APIServerOption)

type FiberMiddleware

type FiberMiddleware = func(*fiber.Ctx) error

type Gateway

type Gateway struct {
	GatewayOptions
	// contains filtered or unexported fields
}

func NewGateway

func NewGateway(ctx context.Context, conf *config.GatewayConfig, opts ...GatewayOption) *Gateway

func (*Gateway) CapabilitiesStore

func (g *Gateway) CapabilitiesStore() capabilities.BackendStore

Implements management.CapabilitiesDataSource

func (*Gateway) ListenAndServe

func (g *Gateway) ListenAndServe() error

func (*Gateway) MustRegisterCollector

func (g *Gateway) MustRegisterCollector(collector prometheus.Collector)

func (*Gateway) StorageBackend

func (g *Gateway) StorageBackend() storage.Backend

Implements management.CoreDataSource

func (*Gateway) TLSConfig

func (g *Gateway) TLSConfig() *tls.Config

Implements management.CoreDataSource

type GatewayAPIServer

type GatewayAPIServer struct {
	APIServerOptions
	// contains filtered or unexported fields
}

func (*GatewayAPIServer) ConfigureBootstrapRoutes

func (s *GatewayAPIServer) ConfigureBootstrapRoutes(
	storageBackend storage.Backend,
	installer capabilities.Installer,
)

func (*GatewayAPIServer) ListenAndServe

func (s *GatewayAPIServer) ListenAndServe() error

func (*GatewayAPIServer) Shutdown

func (s *GatewayAPIServer) Shutdown() error

type GatewayOption

type GatewayOption func(*GatewayOptions)

func WithAPIServerOptions

func WithAPIServerOptions(opts ...APIServerOption) GatewayOption

func WithCapabilityBackendPlugins

func WithCapabilityBackendPlugins(plugins []CapabilityBackendPlugin) GatewayOption

func WithLifecycler

func WithLifecycler(lc config.Lifecycler) GatewayOption

func WithSystemPlugins

func WithSystemPlugins(plugins []plugins.ActivePlugin) GatewayOption

type GatewayOptions

type GatewayOptions struct {
	// contains filtered or unexported fields
}

func (*GatewayOptions) Apply

func (o *GatewayOptions) Apply(opts ...GatewayOption)

type MetricsEndpointHandler

type MetricsEndpointHandler struct {
	// contains filtered or unexported fields
}

func NewMetricsEndpointHandler

func NewMetricsEndpointHandler() *MetricsEndpointHandler

func (*MetricsEndpointHandler) ListenAndServe

func (h *MetricsEndpointHandler) ListenAndServe(listener net.Listener) error

func (*MetricsEndpointHandler) MustRegister

func (h *MetricsEndpointHandler) MustRegister(collectors ...prometheus.Collector)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL