mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	定义访问日志队列
This commit is contained in:
		
							
								
								
									
										10
									
								
								pkg/serverconfigs/access_log_queue_config.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								pkg/serverconfigs/access_log_queue_config.go
									
									
									
									
									
										Normal 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
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user