Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NacosClient config_client.IConfigClient
Functions ¶
func InitConfig ¶
func InitConfig()
Types ¶
type AppConfig ¶
type AppConfig struct { Config *struct { Address string Path string Port uint64 } *DataConfig }
var ConfigData *AppConfig
type DataConfig ¶
type DataConfig struct { Db *struct { Type string `yaml:"type"` Ip string `yaml:"ip"` Port int `yaml:"port"` User string `yaml:"user"` Password string `yaml:"password"` MaxIdle int `yaml:"max_idle"` MaxOpen int `yaml:"max_open"` } `yaml:"db"` Redis *struct { Ip string `yaml:"ip"` Port int `yaml:"port"` } `yaml:"redis"` Gin *struct { RunMode string `yaml:"run_mode"` } `yaml:"gin"` }
Click to show internal directories.
Click to hide internal directories.