Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BinaryName string Version string GitCommit string )
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
func VersionMsg ¶
func VersionMsg() 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.