Documentation ¶
Index ¶
Constants ¶
View Source
const ( IPTABLES_TABLE = "raw" IPTABLES_PREROUTING = "PREROUTING" IPTABLES_CHAIN = "IPVS-CONTROLLER" HighestRandomWeightScheduler = "hrw" MagLevScheduler = "mh" )
Variables ¶
View Source
var ( // TODO: make this as a config option SupportedIpvsSchedulers = []string{HighestRandomWeightScheduler, MagLevScheduler, ipvs.RoundRobin, ipvs.LeastConnection, ipvs.SourceHashing, ipvs.DestinationHashing} )
Functions ¶
func EnsureSysctlSettings ¶
func EnsureSysctlSettings() error
func LoadIpvsSchedulerKernelModulesIfExist ¶
func LoadIpvsSchedulerKernelModulesIfExist()
Types ¶
type Destination ¶
type Destination struct {
*ipvs.Destination
}
Destination defines an IPVS destination (real server) in its entirety.
func NewIpvsDestination ¶
func NewIpvsDestination(dst *ipvs.Destination) *Destination
func (*Destination) ID ¶
func (d *Destination) ID() string
Click to show internal directories.
Click to hide internal directories.