Documentation ¶
Index ¶
Constants ¶
View Source
const ( TCP = 0x06 UDP = 0x11 )
Variables ¶
This section is empty.
Functions ¶
func HealthyVIPs ¶ added in v0.0.7
Types ¶
type Destination ¶
type Destination struct { Address netip.Addr `json:"address"` Port uint16 `json:"port"` Disabled bool `json:"disabled"` Weight uint8 `json:"weight"` Status mon.Status `json:"status"` Checks []mon.Check `json:"checks"` }
func (*Destination) HealthyWeight ¶
func (d *Destination) HealthyWeight() uint8
If the destination is healthy then this function returns its weight. If unhealthy or disabled, zero is returned
type Director ¶
type Director struct { // A channel which may be used to receive notifications of changes in status of backend servers. C chan bool // The Balancer which will implement the services managed by this Director. Balancer Balancer // Default IP address to use for network probes (needed for SYN, should be optional). Address netip.Addr Logger log.Log // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.