Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // base // log Log *log.Config App *bm.App // favorite config Fav *Fav Platform *Platform // BM blademaster BM *bm.ServerConfig // rpc server2 RPCServer *rpc.ServerConfig // db MySQL *MySQL // redis Redis *Redis // memcache Memcache *Memcache // databus JobDatabus *databus.Config // verify Verify *verify.Config // rpc client RPCClient2 *RPC // tracer Tracer *trace.Config // http client HTTPClient *bm.ClientConfig // ecode Ecode *ecode.Config // TopicClient Topic *Topic // Antispam Antispam *antispam.Config // Supervisior Supervisor *supervisor.Config // collector Infoc2 *infoc.Config //grpc warden WardenServer *warden.ServerConfig }
Config is favorte conf
var ( // Conf Config Conf *Config )
type Fav ¶
type Fav struct { // the max of the num of favorite folders MaxFolders int MaxPagesize int MaxBatchSize int MaxDataSize int MaxParallelSize int MaxRecentSize int MaxNameLen int MaxDescLen int // the num of operation MaxOperationNum int // the num of default favorite DefaultFolderLimit int NormalFolderLimit int // ApiHost api.bilibili.co . APIHost string // cache expire Expire time.Duration // cdtime cool down time CleanCDTime time.Duration // real-name switch RealNameOn bool }
Fav config
type RPC ¶
type RPC struct { Account *warden.ClientConfig Archive *rpc.ClientConfig Filter *rpc.ClientConfig Rank *rpc.ClientConfig }
RPC contain all rpc conf
Click to show internal directories.
Click to hide internal directories.