Documentation ¶
Index ¶
- Variables
- func CoroutineID() uint64
- func ID() int64
- func LoadAmqp(conf *config.AmqpConfig)
- func LoadConfig(conf interface{}, handler ...LoadedConfigHandler)
- func LoadMySqlDB(conf *config.MySqlConfig)
- func LoadMySqlDB2(conf *config.MySqlConfig)
- func LoadMySqlDBS(configs config.MySqlConfigs, defaultKey string)
- func LoadRedis(conf *config.RedisConfig)
- func LoadServer(conf *config.ServerConfig)
- func LoadSnowflake(conf *config.SnowflakeConfig)
- type LoadedConfigHandler
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CoroutineID ¶
func CoroutineID() uint64
func LoadAmqp ¶
func LoadAmqp(conf *config.AmqpConfig)
func LoadConfig ¶
func LoadConfig(conf interface{}, handler ...LoadedConfigHandler)
func LoadMySqlDB ¶
func LoadMySqlDB(conf *config.MySqlConfig)
func LoadMySqlDB2 ¶
func LoadMySqlDB2(conf *config.MySqlConfig)
func LoadMySqlDBS ¶
func LoadMySqlDBS(configs config.MySqlConfigs, defaultKey string)
LoadMySqlDBS Load multiple MysqlConnect
func LoadRedis ¶
func LoadRedis(conf *config.RedisConfig)
func LoadServer ¶
func LoadServer(conf *config.ServerConfig)
func LoadSnowflake ¶
func LoadSnowflake(conf *config.SnowflakeConfig)
Types ¶
type LoadedConfigHandler ¶
type LoadedConfigHandler func(conf interface{})
Click to show internal directories.
Click to hide internal directories.