Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthClientSet ¶
type HealthStatusQuerier ¶
type HealthStatusQuerier interface {
GetHealthStatus(id string) *corev1.HealthStatus
}
type HealthStatusUpdater ¶
type HealthStatusUpdater interface { StatusC() chan StatusUpdate HealthC() chan HealthUpdate }
type HealthUpdate ¶
type Listener ¶
type Listener struct { ListenerOptions // contains filtered or unexported fields }
func NewListener ¶
func NewListener(opts ...ListenerOption) *Listener
func (*Listener) HandleAgentConnection ¶
Implements gateway.ConnectionHandler
func (*Listener) HandleConnection ¶
func (l *Listener) HandleConnection(ctx context.Context, clientset HealthClientSet)
func (*Listener) HealthC ¶
func (l *Listener) HealthC() chan HealthUpdate
func (*Listener) StatusC ¶
func (l *Listener) StatusC() chan StatusUpdate
type ListenerOption ¶
type ListenerOption func(*ListenerOptions)
func WithMaxConnections ¶
func WithMaxConnections(max int64) ListenerOption
Max concurrent connections. Defaults to math.MaxInt64
func WithMaxJitter ¶
func WithMaxJitter(duration time.Duration) ListenerOption
func WithPollInterval ¶
func WithPollInterval(interval time.Duration) ListenerOption
func WithUpdateQueueCap ¶
func WithUpdateQueueCap(cap int) ListenerOption
Max concurrent queued updates before blocking. Defaults to 1000
type ListenerOptions ¶
type ListenerOptions struct {
// contains filtered or unexported fields
}
type Monitor ¶
type Monitor struct { MonitorOptions // contains filtered or unexported fields }
func NewMonitor ¶
func NewMonitor(opts ...MonitorOption) *Monitor
func (*Monitor) GetHealthStatus ¶
func (m *Monitor) GetHealthStatus(id string) *corev1.HealthStatus
type MonitorOption ¶
type MonitorOption func(*MonitorOptions)
func WithLogger ¶
func WithLogger(lg *zap.SugaredLogger) MonitorOption
type MonitorOptions ¶
type MonitorOptions struct {
// contains filtered or unexported fields
}
type StatusUpdate ¶
Click to show internal directories.
Click to hide internal directories.