Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NgingRule ¶ added in v1.3.9
type NgingRule struct { IPWhitelist string // IP白名单(如果不设置表示不限制) RpsLimit uint // 频率限制规则([NgingRpsLimit]+/p/s) RateBurst uint // 频率最大峰值 RateExpires uint // 限制时间(秒) OtherPort []uint16 // 一般不需要设置。如果 Nging 还使用了其它端口则在此设置 }
NgingRule Nging 自身的防火墙规则
func (*NgingRule) OtherPortStrs ¶ added in v1.3.9
Click to show internal directories.
Click to hide internal directories.