drive

package
v0.0.0-...-ca42a2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 Debug

func Debug(fields map[string]interface{}, msg interface{})

func Err

func Err(fields map[string]interface{}, msg interface{})

func InitConfig

func InitConfig()

func InitEtcd

func InitEtcd()

func InitLog

func InitLog(currentDir string)

func InitMonitor

func InitMonitor()

func InitMysql

func InitMysql()

func InitRedis

func InitRedis()

func Notices

func Notices(fields map[string]interface{}, msg interface{})

func Waring

func Waring(fields map[string]interface{}, msg interface{})

Types

type Config

type Config struct {
	Cfg *ini.File
}
var G_conf *Config

type Monitor

type Monitor struct {
	Info *monitorInfo
}
var G_monitor *Monitor

type Mysql

type Mysql struct {
	Db *gorm.DB
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL