Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { rest.RestConf Auth struct { AccessSecret string AccessExpire int64 } LogConf LogConf `json:"LogConf" yaml:"LogConf"` RedisConf redis.RedisConf `json:"RedisConf" yaml:"RedisConf"` CoreRpc zrpc.RpcClientConf `json:"CoreRpc" yaml:"CoreRpc"` Captcha Captcha `json:"Captcha" yaml:"Captcha"` DB gormsql.GORMConf `json:"DatabaseConf" yaml:"DatabaseConf"` }
type LogConf ¶
type LogConf struct { ServiceName string `json:",optional"` // service name Mode string `json:",default=console,options=console|file|volume"` // mode: console-output to console,file-output to file,,volume-output to the docker volume Path string `json:",default=logs"` // store path Level string `json:",default=info,options=info|error|severe"` // the level to be shown Compress bool `json:",optional"` // gzip compress KeepDays int `json:",optional"` // the period to be stored StackCooldownMillis int `json:",default=100"` // the period between two writing (ms) }
Click to show internal directories.
Click to hide internal directories.