Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { zrpc.RpcServerConf MysqlConf MysqlConf RedisConf RedisConf RabbitMQConf RabbitMQConf EmailConf EmailConf OauthConfList map[string]OauthConf }
type EmailConf ¶
type EmailConf struct { Host string `json:"host"` // 服务器地址 Port int `json:"port"` // 端口 Username string `json:"username"` // 发件人 Password string `json:"password"` // 密钥 Nickname string `json:"nickname"` // 发件人昵称 Deliver []string `json:"deliver"` // 抄送邮箱:多个以英文逗号分隔 }
邮件配置
type MysqlConf ¶
type MysqlConf struct { Host string `json:"host"` Port string `json:"port"` Username string `json:"username"` Password string `json:"password"` Dbname string `json:"dbname"` Config string `json:"config"` }
mysql数据库配置
type OauthConf ¶
type OauthConf struct { ClientId string `json:"client_id"` ClientSecret string `json:"client_secret"` RedirectUri string `json:"redirect_uri"` }
oauth配置
Click to show internal directories.
Click to hide internal directories.