实现统计设置

This commit is contained in:
刘祥超
2020-09-20 14:48:46 +08:00
parent ec3dd3a1c8
commit f238078054
4 changed files with 207 additions and 70 deletions

View File

@@ -0,0 +1,9 @@
package serverconfigs
type HTTPStatConfig struct {
IsOn bool `yaml:"isOn" json:"isOn"` // 是否开启
}
func (this *HTTPStatConfig) Init() error {
return nil
}

View File

@@ -17,4 +17,5 @@ type HTTPWebConfig struct {
RequestHeaders *shared.HTTPHeaderPolicy `yaml:"requestHeaders" json:"requestHeaders"` // 请求Header
ResponseHeaders *shared.HTTPHeaderPolicy `yaml:"responseHeaders" json:"responseHeaders"` // 响应Header`
AccessLog *HTTPAccessLogConfig `yaml:"accessLog" json:"accessLog"` // 访问日志配置
Stat *HTTPStatConfig `yaml:"stat" json:"stat"` // 统计配置
}