From 78c5692e45a4357adffb864dfe105fa36c814ed3 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期四, 05 九月 2024 13:55:28 +0800 Subject: [PATCH] 添加阈值到配置文件 --- config/config.go | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/config/config.go b/config/config.go index f29e1cd..61d850f 100644 --- a/config/config.go +++ b/config/config.go @@ -42,12 +42,13 @@ } type api struct { - Host string `mapstructure: "host"` - Port string `mapstructure: "port"` - TimeThreshold int `mapstructure:"timeThreshold"` - CsTimes int `mapstructure:"csTimes"` - CsHours int `mapstructure:"csHours"` - AInterval int `mapstructure:"aInterval"` + Host string `mapstructure: "host"` + Port string `mapstructure: "port"` + CapAddrDaysThreshold int `mapstructure:"capAddrDaysThreshold"` + TimeThreshold int `mapstructure:"timeThreshold"` + CsTimes int `mapstructure:"csTimes"` + CsHours int `mapstructure:"csHours"` + AInterval int `mapstructure:"aInterval"` } var LogConf = &LogConfig{} -- Gitblit v1.8.0