Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckResponse ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy is the core part of HA proxy, it maintains the list of server end points and has the right to pick active server.
func NewProxy ¶
NewProxy creates and only creates single instance of Proxy object with given list of server end points, health check interval and timeout.
func (*Proxy) HealthCheck ¶
func (p *Proxy) HealthCheck()
HealthCheck sends out health check requests to all server end points.
func (*Proxy) UpdateAddress ¶
UpdateAddress updates the address with given information.
Click to show internal directories.
Click to hide internal directories.