Documentation ¶
Overview ¶
Package gorb provide the ability to register and deregister the backend
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackendConfig ¶
type BackendConfig struct { Host string `json:"host"` Port int `json:"port"` Method string `json:"method"` Weight int `json:"weight"` Pulse Pulse `json:"pulse"` }
BackendConfig defines the backend configuration
type CommandRunner ¶
CommandRunner is a cut down version of exec.Cmd for running commands
type Config ¶
type Config struct { ServerBaseURL string InstanceIP string DrainDelay time.Duration ServicesDefinition []VirtualService BackendWeight int BackendMethod string VipLoadbalancer string ManageLoopback bool BackendHealthcheckInterval string BackendHealthcheckType string InterfaceProcFsPath string }
Config defines all the configuration required for gorb
type Pulse ¶
type Pulse struct { TypeHealthcheck string `json:"type"` Args PulseArgs `json:"args"` Interval string `json:"interval"` }
Pulse defines backend health check
type PulseArgs ¶
type PulseArgs struct { Method string `json:"method"` Path string `json:"path"` Expect string `json:"expect"` }
PulseArgs defines health check URI
type SimpleCommandRunner ¶
type SimpleCommandRunner struct { }
SimpleCommandRunner implements CommandRunner
type VirtualService ¶
VirtualService defines the virtual services
Click to show internal directories.
Click to hide internal directories.