Documentation ¶
Index ¶
- Constants
- type Config
- type DefaultConfig
- func (d *DefaultConfig) GetHost() string
- func (d *DefaultConfig) GetPass() string
- func (d *DefaultConfig) GetPort() uint32
- func (d *DefaultConfig) GetUser() string
- func (d *DefaultConfig) Scan(value interface{}) error
- func (d *DefaultConfig) ToConf() *conf.EmailConfig
- func (d *DefaultConfig) Value() (driver.Value, error)
- type Email
- type Interface
Constants ¶
View Source
const (
// DOMAIN 域名
DOMAIN = "Moon监控系统"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultConfig ¶ added in v1.2.0
type DefaultConfig struct { User string `json:"user"` Pass string `json:"pass"` Host string `json:"host"` Port uint32 `json:"port"` }
DefaultConfig 默认邮件配置
func NewDefaultConfig ¶ added in v1.2.0
func NewDefaultConfig(config *conf.EmailConfig) *DefaultConfig
NewDefaultConfig 创建默认邮件配置
func (*DefaultConfig) GetHost ¶ added in v1.2.0
func (d *DefaultConfig) GetHost() string
GetHost implements Config.
func (*DefaultConfig) GetPass ¶ added in v1.2.0
func (d *DefaultConfig) GetPass() string
GetPass implements Config.
func (*DefaultConfig) GetPort ¶ added in v1.2.0
func (d *DefaultConfig) GetPort() uint32
GetPort implements Config.
func (*DefaultConfig) GetUser ¶ added in v1.2.0
func (d *DefaultConfig) GetUser() string
GetUser 实现email.Config接口
func (*DefaultConfig) Scan ¶ added in v1.2.0
func (d *DefaultConfig) Scan(value interface{}) error
Scan 实现gorm的Scan方法
func (*DefaultConfig) ToConf ¶ added in v1.2.0
func (d *DefaultConfig) ToConf() *conf.EmailConfig
ToConf 转换为conf.EmailConfig
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
Email 邮件
Click to show internal directories.
Click to hide internal directories.