Documentation ¶
Index ¶
Constants ¶
View Source
const (
VERSION = "1.1.0"
)
change log: 1.0.7: code refactor for open source 1.0.8: bugfix loop init cache 1.0.9: update host table anyway 1.1.0: remove Checksum when query plugins
Variables ¶
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `json:"debug"` Hosts string `json:"hosts"` Database string `json:"database"` MaxConns int `json:"maxConns"` MaxIdle int `json:"maxIdle"` Listen string `json:"listen"` Trustable []string `json:"trustable"` Http *HttpConfig `json:"http"` }
func Config ¶
func Config() *GlobalConfig
type HttpConfig ¶
Click to show internal directories.
Click to hide internal directories.