Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(fields map[string]interface{}, msg interface{})
- func Err(fields map[string]interface{}, msg interface{})
- func InitConfig()
- func InitEtcd()
- func InitLog(currentDir string)
- func InitMonitor()
- func InitMysql()
- func InitRedis()
- func Notices(fields map[string]interface{}, msg interface{})
- func Waring(fields map[string]interface{}, msg interface{})
- type Config
- type Monitor
- type Mysql
Constants ¶
View Source
const ( // 配置中心对外配置类型 NODE_CONF_HTTP_TYPE = "http" NODE_CONF_JSON_TYPE = "json" NODE_CONF_PHP_TYPE = "php" )
Variables ¶
View Source
var ( CONFIG_DIR = "" CONFIG_FILENAME = "" )
View Source
var G_mysql *gorm.DB
View Source
var G_node_conf map[string]string
View Source
var G_redis *redis.Client
Functions ¶
func InitConfig ¶
func InitConfig()
func InitMonitor ¶
func InitMonitor()
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.