实现统计设置
This commit is contained in:
9
pkg/serverconfigs/http_stat_config.go
Normal file
9
pkg/serverconfigs/http_stat_config.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package serverconfigs
|
||||
|
||||
type HTTPStatConfig struct {
|
||||
IsOn bool `yaml:"isOn" json:"isOn"` // 是否开启
|
||||
}
|
||||
|
||||
func (this *HTTPStatConfig) Init() error {
|
||||
return nil
|
||||
}
|
||||
@@ -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"` // 统计配置
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user