Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Conf of config Conf = &Config{} )
Functions ¶
Types ¶
type Abnormal ¶
type Abnormal struct { CriticalCid int64 // 12780000, critical cid for transcoding AbnormHours int // ugc abnormal cid interval hour ReloadFre xtime.Duration ExportTitles []string // export titles }
Abnormal cid export def
type AuditConsult ¶
AuditConsult related cfg
type Cfg ¶
type Cfg struct { Playpath string // playurl AuditRSize int // page size for audit result checking PlayurlAPI string // pgc playurl api SearInterMax int IntervLimit int PGCTypes []string // pgc types that need to filter archives PgcNames map[string]string // pgc category name in CN ModIntMaxSize int // ModIntMaxSize module intervene max size TypesLoad xtime.Duration // reloading type duratio UPlayurlAPI string // ugc playurl api SupportCat *SupportCat MangoErr string // mango error indication message LoadSnFre xtime.Duration RefLabel *RefLabel // refresh label original data frequency AuditConsult *AuditConsult // audit consult cfg Hosts *Hosts Abnormal *Abnormal // abnormal cid export related cfg EsIdx *EsIdx // es index cfg }
Cfg def
type Config ¶
type Config struct { // base // http HTTPServer *bm.ServerConfig // auth Auth *permit.Config // db ORM *orm.Config // dbshow ORMShow *orm.Config // log Log *log.Config // tracer Tracer *trace.Config // httpsearch HTTPSearch *HTTPSearch // Cfg Cfg *Cfg // HTTPClient . HTTPClient *bm.ClientConfig // URLConf URLConf *URLConf // YSTParam YSTParam *YSTParam // Bfs Bfs *Bfs // grpc ArcClient *warden.ClientConfig AccClient *warden.ClientConfig // Ecode Cfg Ecode *ecode.Config //mc Memcache *Memcache }
Config def.
type HTTPSearch ¶
type HTTPSearch struct { *bm.ClientConfig FullURL string }
HTTPSearch http client of search
type RefLabel ¶
type RefLabel struct { Fre xtime.Duration PgcAPI string // pgc api host UgcType string UgcTime string AllValue string AllName string }
RefLabel def.
type SupportCat ¶
SupportCat means the pgc&ugc types that we support to fill the modules
Click to show internal directories.
Click to hide internal directories.