Documentation
¶
Index ¶
- type Balancer
- type ConfigSet
- func (c *ConfigSet) AddFNat(s Service)
- func (c *ConfigSet) AddNat(s Service)
- func (c *ConfigSet) AttachFNat(ip string)
- func (c *ConfigSet) AttachNat(ip string)
- func (c *ConfigSet) DelFNat(s Service)
- func (c *ConfigSet) DelNat(s Service)
- func (c *ConfigSet) DetachFNat(ip string)
- func (c *ConfigSet) DetachNat(ip string)
- func (c *ConfigSet) Save(path string) error
- type Global
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balancer ¶
type Balancer struct {
Attached []string `mapstructure:"attached" yaml:"attached"`
Services []Service `mapstructure:"services" yaml:"services"`
UseTc bool `mapstructure:"use-tc" yaml:"use-tc,omitempty"`
ExclusivePortEnabled bool `mapstructure:"exclusive-port-enabled" yaml:"exclusive-port-enabled,omitempty"`
}
type ConfigSet ¶
type ConfigSet struct {
Global Global `mapstructure:"global" yaml:"global"`
Nat Balancer `mapstructure:"nat" yaml:"nat"`
FNat Balancer `mapstructure:"fnat" yaml:"fnat"`
// contains filtered or unexported fields
}
func ReadConfigfile ¶
func (*ConfigSet) AttachFNat ¶
func (*ConfigSet) DetachFNat ¶
type Global ¶
type Service ¶
type Service struct {
VirtualIP string `mapstructure:"virtual-ip" yaml:"virtual-ip,omitempty"`
VirtualPort uint32 `mapstructure:"virtual-port" yaml:"virtual-port,omitempty"`
Protocol string `mapstructure:"protocol" yaml:"protocol,omitempty"`
LocalIP string `mapstructure:"local-ip" yaml:"local-ip,omitempty"`
RealPort uint32 `mapstructure:"real-port" yaml:"real-port,omitempty"`
ConnTimeout uint32 `mapstructure:"conn-timeout" yaml:"conn-timeout,omitempty"`
RealServerIPs []string `mapstructure:"real-server-ips" yaml:"real-server-ips,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.