Documentation
¶
Index ¶
Constants ¶
View Source
const ( VERSION = "20220419" TREND_INTERVALS = 3600 //聚合区间为1小时 )
Variables ¶
View Source
var ( Logger *log.Logger Ipaddr string )
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
Types ¶
type GlobalConfig ¶
type GlobalConfig struct {
Debug bool `json:"debug"`
DBLog bool `json:"dblog"`
LogLevel string `json:"log_level"`
LogMaxAge int `json:"logmaxage"`
LogRotateAge int `json:"logrotateage"`
LogFile string `json:"logfile"`
MetricPort string `json:"metricport"`
Gauge bool `json:"gauge"`
Http *HttpConfig `json:"http"`
Rpc *RpcConfig `json:"rpc"`
DB *DBConfig `json:"db"`
Redis *RedisConfig `json:"redis"`
}
func Config ¶
func Config() *GlobalConfig
type HttpConfig ¶
type RedisConfig ¶
Click to show internal directories.
Click to hide internal directories.