Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Server *ServerConfig `mapstructure:"server"` Prefix *PrefixConfig `mapstructure:"prefix"` Mysql *MysqlConfig `mapstructure:"mysql"` }
var Conf *Config
type MysqlConfig ¶
type MysqlConfig struct { Host string `mapstructure:"host"` Port string `mapstructure:"port"` SlaveHost string `mapstructure:"slaveHost"` SlavePort string `mapstructure:"slavePort"` User string `mapstructure:"user"` Password string `mapstructure:"password"` Database string `mapstructure:"database"` MaxIdleConn int `mapstructure:"maxIdleConn"` MaxOpenConn int `mapstructure:"maxOpenConn"` }
type PrefixConfig ¶
type PrefixConfig struct {
Api string `mapstructure:"api"`
}
type ServerConfig ¶
type ServerConfig struct { Port int `mapstructure:"port"` Mode string `mapstructure:"mode"` ClientIDKey string `mapstructure:"clientIDKey"` StaticResource StaticResource `mapstructure:"static_resource"` }
type StaticResource ¶
Click to show internal directories.
Click to hide internal directories.