Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cache = cache.New(5*time.Minute, 5*time.Minute)
Cache 全局缓存
Functions ¶
Types ¶
type BaiduFace ¶
type BaiduFace struct { Name string `json:"name"` AppID string `json:"app_id"` Appkey string `json:"app_key"` AppSecret string `json:"app_secret"` }
BaiduFace 百度人脸
type Conf ¶
type Conf struct { Host string `json:"host"` Port string `json:"port"` IsSsl bool `json:"is_ssl,omitempty"` SslKey string `json:"ssl_key,omitempty"` SslPem string `json:"ssl_pem,omitempty"` Token string `json:"token,omitempty"` WeChat WeChat `json:"wechat,omitempty"` Mysql Mysql `json:"mysql,omitempty"` BaiduFace BaiduFace `json:"baidu_face,omitempty"` YP YP `json:"yp,omitempty"` }
Conf struct
type Mysql ¶
type Mysql struct { Host string `json:"host"` Port string `json:"port"` Name string `json:"name"` User string `json:"user"` Password string `json:"password"` }
Mysql struct
Click to show internal directories.
Click to hide internal directories.