Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Pay Pay `mapstructure:"pay"`
Jwt Jwt `mapstructure:"jwt"`
Wx Wx `mapstructure:"wx"`
Auth Auth `mapstructure:"auth"`
Qiniu Qiniu `mapstructure:"qiniu"`
Upload Upload `mapstructure:"upload"`
Cache Cache `mapstructure:"cache"`
DB DB `mapstructure:"db"`
Server Server `mapstructure:"server"`
}
var Conf *Config
type Redis ¶
type Redis struct {
Addr string `mapstructure:"addr"`
Password string `mapstructure:"password"`
DB int `mapstructure:"db"`
PoolSize int `mapstructure:"poolSize"`
IdleTimeout int `mapstructure:"idleTimeout"`
MaxOpenConns int `mapstructure:"maxOpenConns"`
MaxIdleConns int `mapstructure:"maxIdleConns"`
}
type WxPay ¶
type WxPay struct {
AppId string `mapstructure:"appId"`
MchId string `mapstructure:"mchId"` //商户证书的证书序列号
MchSerialNo string `mapstructure:"mchSerialNo"` //商户证书的证书序列号
ApiV3Key string `mapstructure:"apiV3Key"` //apiV3Key,商户平台获取
PrivateKey string `mapstructure:"privateKey"` //私钥 apiclient_key.pem 读取后的内容
AppSecret string `mapstructure:"appSecret"`
NotifyUrl string `mapstructure:"notifyUrl"`
MchCertPath string `mapstructure:"mchCertPath"`
MchKeyPath string `mapstructure:"mchKeyPath"`
}
Click to show internal directories.
Click to hide internal directories.