Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortConfig ¶
type ProtectionConfig ¶
type ProtectionConfig struct {
TCP *TCPConfig `yaml:"tcp" json:"tcp"`
}
func DefaultProtectionConfig ¶
func DefaultProtectionConfig() *ProtectionConfig
func (*ProtectionConfig) Init ¶
func (this *ProtectionConfig) Init() error
func (*ProtectionConfig) IsOn ¶
func (this *ProtectionConfig) IsOn() bool
func (*ProtectionConfig) IsPriorEmpty ¶
func (this *ProtectionConfig) IsPriorEmpty() bool
func (*ProtectionConfig) Merge ¶
func (this *ProtectionConfig) Merge(childConfig *ProtectionConfig)
type TCPConfig ¶
type TCPConfig struct { IsPrior bool `json:"isPrior"` IsOn bool `json:"isOn"` MaxConnections int32 `json:"maxConnections"` MaxConnectionsPerIP int32 `json:"maxConnectionsPerIP"` NewConnectionsRate int32 `json:"newConnectionsRate"` AllowIPList []*IPConfig `json:"allowIPList"` Ports []*PortConfig `json:"ports"` }
Click to show internal directories.
Click to hide internal directories.