Files
EdgeCommon/pkg/serverconfigs/http_cc_config.go
2023-03-09 12:10:31 +08:00

23 lines
537 B
Go

// Copyright 2023 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
//go:build !plus
package serverconfigs
// HTTPCCConfig HTTP CC防护配置
type HTTPCCConfig struct {
IsPrior bool `yaml:"isPrior" json:"isPrior"` // 是否覆盖父级
IsOn bool `yaml:"isOn" json:"isOn"` // 是否启用
}
func NewHTTPCCConfig() *HTTPCCConfig {
return &HTTPCCConfig{}
}
func (this *HTTPCCConfig) Init() error {
return nil
}
func (this *HTTPCCConfig) MatchURL(url string) bool {
return false
}