Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Conf config Conf = &Config{} )
Functions ¶
Types ¶
type Config ¶
type Config struct { // base // db DB *DB // spy rpc client SpyRPC *rpc.ClientConfig AccountRPC *rpc.ClientConfig // memcache Memcache *Memcache // log Log *log.Config // customized property Property *Property HTTPServer *bm.ServerConfig }
Config def.
type Property ¶
type Property struct { TelValidateURL string BlockAccountURL string UserInfoShard int64 HistoryShard int64 LoadEventTick time.Duration Score *struct { BaseInit int8 EventInit int8 } Punishment *struct { ScoreThreshold int8 Times int8 } Event *struct { ServiceName string BindMailAndTelLowRisk string BindMailOnly string BindNothing string BindTelLowRiskOnly string BindTelMediumRisk string BindTelHighRisk string BindTelUnknownRisk string } // activity events ActivityEvents map[int32]struct{} }
Property config for biz logic.
Click to show internal directories.
Click to hide internal directories.