Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // log conf LoggerFlag = "os" LogOutPutPath = "/dev/stdout" //database conf OrmMaxIdleConn = 30 OrmMaxOpen = 50 OrmCacheTime = Hour OrmCacheCount = 1024 * 1024 )
for log conf.. conf written in go...
View Source
var AppConf struct { //logger.. LogLevel int32 `json:"LogLevel"` LogPath string `json:"LogPath"` // srv set.. SrvName string `json:"SrvName"` VersionTag int `json:"Version"` // Todo: SetId int `json:"GlobalSetId"` }
View Source
var OrmConf struct { DriverName string `json:"DriverName"` DataSource string `json:"DataSource"` MaxIdle int `json:"MaxIdle"` MaxOpen int `json:"MaxOpen"` DebugLog bool `json:"DebugLog"` IsProMode bool `json:"IsProMode"` // cache IsCached bool `json:"UseCache"` CacheTime time.Duration `json:"CacheDuration"` CacheCount int `json:"CacheRecordCount"` // if TableHashValue == 0, no table sharding.. TableHashValue int `json:"TableHashValue"` //Todo: DatabaseHashValue int `json:"DbHashValue"` }
struct define... var cc = make(map[string]string) //cache map OrmConf config as variable..
View Source
var SqlMap struct { OpenWatcher bool `json:"FSWatcher"` XmlLocation string `json:"MapLocation"` XmlSuffix string `json:"MapSuffix"` }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.