Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dynamic ¶
type Dynamic struct { DynamicCfg // contains filtered or unexported fields }
Dynamic 动态配置
type DynamicCfg ¶
type DynamicCfg struct { WhiteList []string `yaml:"white_list"` // 地址白名单 Suspended bool `yaml:"suspended"` // 是否暂停服务 MaxMemoLength int `yaml:"max_memo_length"` // 备注最大长度 AllowDeposit bool `yaml:"allow_deposit"` // 是否允许充值 AllowWithdraw bool `yaml:"allow_withdraw"` // 是否允许提现 RedEnvelopeExpire int64 `yaml:"red_envelope_expire"` // 红包过期时间 UseFixedFee bool `yaml:"use_fixed_fee"` // 是否使用固定手续费 FixedFeeAmount FeeCfg `yaml:"fixed_fee_amount"` // 固定手续费 }
DynamicCfg 配置数据
type MySQLCfg ¶
type MySQLCfg struct { User string `yaml:"user"` // 访问用户 Password string `yaml:"password"` // 访问密码 Database string `yaml:"db"` // 数据库名 Host string `yaml:"host"` // 服务地址 Conns int `yaml:"conns"` // 连接数量 Options map[string]string `yaml:"options"` // 附加选项 }
MySQLCfg MySQL配置
type Serve ¶
type Serve struct { BindAddress string `yaml:"bind-address"` // 绑定地址 Port uint16 `yaml:"port"` // 端口号 Domain string `yaml:"domain"` // 服务域名 APIWebsite string `yaml:"api_website"` // API服务站点 Token string `yaml:"token"` // 机器人token BucketNum uint32 `yaml:"bucket_num"` // 记录桶数量 Account string `yaml:"account"` // 账户名称 MySQL MySQLCfg `yaml:"mysql"` // 数据库配置 WalletService Service `yaml:"wallet_service"` // 钱包服务配置 Dynamic string `yaml:"dynamic"` // 动态文件配置 BolTDBPath string `yaml:"boltdb_path"` // BoltDB路径 Languages string `yaml:"languages"` // 语言配置路径 RedEnvelopesCover []string `yaml:"red_envelopes_cover"` // 红包封面图 }
Serve 服务配置
Click to show internal directories.
Click to hide internal directories.