定义访问日志队列

This commit is contained in:
刘祥超
2021-12-14 12:42:47 +08:00
parent d5af0a740a
commit 12985e1bd9
2 changed files with 13 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package serverconfigs
// AccessLogQueueConfig 访问日志队列配置
type AccessLogQueueConfig struct {
MaxLength int `yaml:"maxLength" json:"maxLength"` // 队列最大长度
CountPerSecond int `yaml:"countPerSecond" json:"countPerSecond"` // 每秒写入数量
Percent int `yaml:"percent" json:"percent"` // 比例如果为0-100默认为100
}