Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Conf = &Config{}
)
Conf global variable.
Functions ¶
Types ¶
type Config ¶
type Config struct { // base // log Log *log.Config // db DB *DB // redis Redis *Redis // HTTPClient HTTPClient *HTTPClient // limit Limit *Limit // geetest Geetest *Geetest // rule Rule map[string]*Limit // url URL *URL // base Base *Base }
Config struct of conf.
type HTTPClient ¶
type HTTPClient struct { Read *bm.ClientConfig Write *bm.ClientConfig }
HTTPClient config
type Limit ¶
type Limit struct { Name string SaleTimeOut int64 MIDCreateTimeOut int64 MIDCreateMax int64 IPCreateTimeOut int64 IPCreateMax int64 IPChangeInterval int64 IPWhiteList []string }
Limit 限制
Click to show internal directories.
Click to hide internal directories.