Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Conf represents a config for spy service. Conf = &Config{} )
Functions ¶
Types ¶
type Config ¶
type Config struct { Account string // tracer Tracer *trace.Config // http client HTTPClient *bm.ClientConfig // db DB *DB // rpc server2 RPCServer *rpc.ServerConfig // memcache Memcache *Memcache // log Log *log.Config // rpc clients RPC *RPC // biz property. Property *Property // redis Redis *Redis // databus DBScoreChange *databus.Config // qcloud Qcloud *Qcloud // bm BM *bm.ServerConfig // grpc GRPC *warden.ServerConfig }
Config def.
type Property ¶
type Property struct { TelValidateURL string BlockAccountURL string SecurityLoginURL string TelInfoByMidURL string ProfileInfoByMidURL string UnicomGiftStateURL string LoadEventTick xtime.Duration DoubleCheckLevel int32 ConfigLoadTick xtime.Duration UserInfoShard int64 HistoryShard int64 AutoBlockSwitch bool Score *struct { BaseInit int8 EventInit int8 } Punishment *struct { ScoreThreshold int8 Times int8 } Event *struct { ServiceName string InitEventID int64 BindMailAndTelLowRisk string BindMailOnly string BindNothing string BindTelLowRiskOnly string BindTelMediumRisk string BindTelHighRisk string BindTelUnknownRisk string BindTelLowRiskAndIdenAuth string BindTelLowRiskAndIdenUnauth string BindTelUnknownRiskAndIdenAuth string BindTelMediumRiskAndIdenAuth string BindTelUnknownRiskAndIdenUnauth string BindTelMediumRiskAndIdenUnauth string BindMailAndIdenUnknown string BindTelHighRiskAndIdenAuth string BindNothingV2 string BindNothingAndIdenAuth string BindTelHighRiskAndIdenUnauth string } Block *struct { CycleTimes int64 // unit per seconds } White *struct { Tels []struct { From int64 // <= from To int64 // >= to } } }
Property config for biz logic.
Click to show internal directories.
Click to hide internal directories.