Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Conf = &Config{}
)
Conf global variable.
Functions ¶
Types ¶
type AssociateConf ¶
type AssociateConf struct { // user grant count limit GrantDurationMap map[string]int64 //限制饿了么发放联合会员的次数 BilibiliPrizeGrantKeyMap map[string]string MailCouponID1 string //票务优惠券满99减5 MailCouponID2 string //电商优惠券满299减20 BilibiliBuyDurationMap map[string]int64 //限制bilibili购买联合会员的次数 }
AssociateConf associate vip conf.
type Config ¶
type Config struct { MsgURI string PayURI string VipURI string // log Log *log.Config // gorpc server RPCServer *rpc.ServerConfig // db Mysql *sql.Config // ecodes FIXME Ecode *ecode.Config //old db OldMysql *sql.Config // http client HTTPClient *bm.ClientConfig // mc Memcache *Memcache // pay conf PayConf *PayConf // rpc clients RPCClient2 *RPC // property Property *Property // http BM *bm.ServerConfig // redis Redis *Redis // associate conf AssociateConf *AssociateConf // ele conf ELEConf *eleclient.Config Host *Host // grpc server WardenServer *warden.ServerConfig // grpc client CouponClient *warden.ClientConfig }
Config struct of conf.
type PayConf ¶
type PayConf struct { CustomerID int64 Token string OrderNotifyURL string SignNotifyURL string PlanID int32 ProductID string Version string ReturnURL string OrderExpire int SignType string }
PayConf pay config
type Property ¶
type Property struct { NotifyURL string MsgURL string PayURL string PayCoURL string AccountURL string PassportURL string APIURL string APICoURL string VipURL string TokenBID string PGCURL string ActiveDate string ActiveTip string Expire string AnnualVipBcoinDay int16 AnnualVipBcoinCouponMoney int AnnualVipBcoinCouponActivityID int GiveBpDay int8 PointGetRule map[string]int PointActiveDate map[string]string BubbleTicker xtime.Duration PayType map[string]string PayChannelMapping map[string]string PointBalance int64 ActiveStart string ActiveEnd string ConfigMap map[string]string PointExchangeTitle map[string]string WillExpiredTitle map[string]string ExpiredTitle map[string]string TipButtonName string TipButtonLink string AllowanceSwitch int8 CodeSwitch int8 GiveSwitch int8 PanelBgURL string CodeOpenedSearchSize int WelfareBgHost string }
Property config for biz logic.
type RPC ¶
type RPC struct { Member *rpc.ClientConfig Point *rpc.ClientConfig Coupon *rpc.ClientConfig }
RPC clients config.
Click to show internal directories.
Click to hide internal directories.