Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendHealthCheck ¶
type BackendHealthCheck struct {
Options
// contains filtered or unexported fields
}
BackendHealthCheck HealthCheck configuration for a backend
func NewBackendHealthCheck ¶
func NewBackendHealthCheck(options Options, backendName string) *BackendHealthCheck
NewBackendHealthCheck Instantiate a new BackendHealthCheck
type HealthCheck ¶
type HealthCheck struct {
Backends map[string]*BackendHealthCheck
// contains filtered or unexported fields
}
HealthCheck struct
func GetHealthCheck ¶
func GetHealthCheck(metrics metricsRegistry) *HealthCheck
GetHealthCheck returns the health check which is guaranteed to be a singleton.
func (*HealthCheck) SetBackendsConfiguration ¶
func (hc *HealthCheck) SetBackendsConfiguration(parentCtx context.Context, backends map[string]*BackendHealthCheck)
SetBackendsConfiguration set backends configuration
type LoadBalancer ¶ added in v1.3.0
type LoadBalancer interface {
RemoveServer(u *url.URL) error
UpsertServer(u *url.URL, options ...roundrobin.ServerOption) error
Servers() []*url.URL
}
LoadBalancer includes functionality for load-balancing management.
Click to show internal directories.
Click to hide internal directories.