controlpoints

package
v2.27.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Module returns an fx.Option that provides the Kubernetes discovery module.

func RegisterControlPointCacheService

func RegisterControlPointCacheService(in RegisterControlPointCacheServiceIn)

RegisterControlPointCacheService registers the ControlPointCache service handler with the gRPC server.

func RegisterControlPointsHandler

func RegisterControlPointsHandler(handler *Handler, t *transport.EtcdTransportServer) error

RegisterControlPointsHandler registers ControlPointsHandler in RPC handler registry.

Types

type Handler

Handler is the gRPC server handler.

func NewHandler

func NewHandler(cpc discovery.AutoScaleControlPoints, agentInfo *agentinfo.AgentInfo) *Handler

NewHandler returns a new Handler.

func (*Handler) GetControlPoints

GetControlPoints returns a ControlPoint from the cache.

func (*Handler) ListAutoScaleControlPoints

ListAutoScaleControlPoints lists currently discovered control points.

type RegisterControlPointCacheServiceIn added in v2.16.0

type RegisterControlPointCacheServiceIn struct {
	fx.In
	Server  *grpc.Server `name:"default"`
	Handler *Handler
}

RegisterControlPointCacheServiceIn bundles and annotates parameters.

Jump to

Keyboard shortcuts

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