mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-04-25 07:25:18 +08:00
套餐可以设置带宽限制
This commit is contained in:
@@ -29,6 +29,10 @@ type TrafficLimitConfig struct {
|
||||
NoticePageBody string `yaml:"noticePageBody" json:"noticePageBody"` // 超出限制时的提醒,支持请求变量
|
||||
}
|
||||
|
||||
func (this *TrafficLimitConfig) Init() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// DailyBytes 每天限制
|
||||
// 不使用Init()来初始化数据,是为了让其他地方不经过Init()也能得到计算值
|
||||
func (this *TrafficLimitConfig) DailyBytes() int64 {
|
||||
|
||||
Reference in New Issue
Block a user