Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Conf store the global config Conf = &Config{} )
Functions ¶
Types ¶
type Config ¶
type Config struct { Tracer *trace.Config BM *bm.ServerConfig HTTPClient *bm.ClientConfig Memcache *Memcache Redis *redis.Config HBase *HBaseConfig Log *log.Config Property *Property sync.RWMutex // orm ORM *orm.Config }
Config def.
type HBaseConfig ¶
HBaseConfig for new hbase client.
type Property ¶
type Property struct { TaskInterval xtime.Duration // 任务轮询时间 TaskTimeout xtime.Duration // 任务超时时间 PollPipeline xtime.Duration //pipeline轮询间隔时间 Gitlab *struct { API string // gitlab api host Token string // saga 账户 access token } WebHooks []*model.WebHook Mail *struct { Host string Port int Address string Pwd string Name string } HealthCheck *struct { CheckCron string AlertAddrs []*model.MailAddress } ReportRequiredVisible *struct { CheckCron string AlertAddrs []*model.MailAddress } SyncContact *struct { CheckCron string } UT *struct { Rate float64 } Wechat *model.AppConfig Contact *model.AppConfig Repos []*model.RepoConfig }
Property config for biz logic.
Click to show internal directories.
Click to hide internal directories.