Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { WebServer struct { BaseURL string `json:"base_url"` // http://localhost:8080 } `json:"web_server"` Mysql struct { UserName string `json:"username"` Password string `json:"password"` Host string `json:"host"` Port int `json:"port"` Database string `json:"database"` } `json:"mysql"` Weixin struct { MP struct { AppId string `json:"appid"` AppSecret string `json:"appsecret"` } `json:"mp"` Open struct { App struct { AppId string `json:"appid"` AppSecret string `json:"appsecret"` } `json:"app"` Web struct { AppId string `json:"appid"` AppSecret string `json:"appsecret"` } `json:"web"` } `json:"open"` } `json:"weixin"` MemcacheServerList []string `json:"memcache_server_list,omitempty"` SecurityKey []byte `json:"security_key,omitempty"` SnowflakeWorkerId int `json:"snowflake_workerid"` // SnowflakeWorkerId 不能重复! }
var ConfigData Config // read only
Click to show internal directories.
Click to hide internal directories.