Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Debug bool `yaml:"debug"` Bind string `yaml:"bind"` Admin string `yaml:"admin"` Password string `yaml:"password"` BaseURL string `yaml:"base_url"` Db Db }
Config save config
type Db ¶
type Db struct { Type string `yaml:"type"` Path string `yaml:"path"` Addr string `yaml:"addr"` User string `yaml:"user"` Password string `yaml:"password"` DbName string `yaml:"db_name"` MaxConns int `yaml:"max_conns"` MaxIdles int `yaml:"max_idles"` ConnLife int `yaml:"conn_life"` }
Db saves db config
Click to show internal directories.
Click to hide internal directories.