Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConfigError = errors.New("config is not found") DEFAULTENV = "DEV" )
View Source
var Conf = new(Config)
Functions ¶
func ParseConfig ¶
func SetDefaultEnv ¶
func SetDefaultEnv(env string)
Types ¶
type Config ¶
type Config struct { Etcd EtcdConfig `json:"etcd"` Database SqlConfig `json:"database"` Redis rds.Options `json:"redis"` Scheme string `json:"scheme"` }
type EtcdConfig ¶
Click to show internal directories.
Click to hide internal directories.