Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds the current state and configuration for a backend
func NewClient ¶
func NewClient(name string, vip, dataIP net.IP, readTimeout, writeTimeout, healthRate int, sockaddr string) *Client
NewClient creates a new Client object
func (*Client) Deregister ¶
Deregister command from caplancectl
type HealthState ¶
type HealthState int
HealthState represents the current state of the client
const ( // Unregistered represents the client state before registration Unregistered HealthState = 0 // Registering represents state during registration Registering HealthState = 1 // Active represents state when packets are being forwarded to the client Active HealthState = 2 // Paused represents state when client is registered but packets are not being forwarded Paused HealthState = 3 // Deregistering represents state when client is deregistering Deregistering HealthState = 4 )
Click to show internal directories.
Click to hide internal directories.