Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlowHTTPDefender ¶
type SlowHTTPDefender struct {
// contains filtered or unexported fields
}
SlowHTTPDefender 防御慢速HTTP攻击的中间件集合
func NewSlowHTTPDefender ¶
func NewSlowHTTPDefender(maxConns int, ratePerSec int, burstSize int, maxBodySize int64, readTimeout time.Duration) *SlowHTTPDefender
NewSlowHTTPDefender 创建新的防御中间件实例
func (*SlowHTTPDefender) DefenseMiddleware ¶
func (s *SlowHTTPDefender) DefenseMiddleware() gin.HandlerFunc
DefenseMiddleware 防御中间件 - 组合所有防御策略
Click to show internal directories.
Click to hide internal directories.