Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxier ¶
type Proxier struct {
// contains filtered or unexported fields
}
Proxier is a HAProxy based proxy implementations. It will generate HAProxy configuration file via template and manage the HAProxy with a reload script.
func NewProxier ¶
func NewProxier(cfg ProxierConfig) (*Proxier, error)
func (*Proxier) HandleEndpoints ¶
func (*Proxier) HandleService ¶
func (*Proxier) SetMaster ¶
SetMaster indicates to the proxier whether in MASTER state or BACKUP state.
func (*Proxier) SetSkipCommit ¶
SetSkipCommit indicates to the proxier whether requests to commit/reload should be skipped.
type ProxierConfig ¶
type ProxierConfig struct { Device string KeepalivedConfig utilkeepalived.KeepalivedConfig HaproxyConfig utilhaproxy.HaproxyConfig }
ProxierConfig is just a wrapper of kinds of config that proxier needs to work properly.
Click to show internal directories.
Click to hide internal directories.