Documentation
¶
Index ¶
- func Get(ctx context.Context, pattern string, def ...interface{}) (*gvar.Var, error)
- func GetBool(ctx context.Context, pattern string, def ...interface{}) (bool, error)
- func GetInt(ctx context.Context, pattern string, def ...interface{}) int
- func GetMapStrStr(ctx context.Context, pattern string, def ...interface{}) map[string]string
- func GetString(ctx context.Context, pattern string, def ...interface{}) string
- type App
- type Config
- type Core
- type Email
- type Error
- type Http
- type Register
- type Statistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapStrStr ¶
Types ¶
type Config ¶
type Config struct {
Core Core `json:"core"`
AdminServerAddress string `json:"admin_server_address"`
App App `json:"app"`
Http Http `json:"http"`
Email Email `json:"email"`
Statistics Statistics `json:"statistics"`
Error Error `json:"error"`
Debug bool `json:"debug"`
}
配置信息
var Cfg *Config
type Email ¶
type Email struct {
Host string `json:"host"` // smtp.xxx.com
Port int `json:"port"` // 端口号
UserName string `json:"username"` // 登录账号
Password string `json:"password"` // 登录密码
FromName string `json:"fromname"` // 发送人名称
}
邮件配置信息
Click to show internal directories.
Click to hide internal directories.