Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailAccount ¶
type EmailAccount struct { SMTPOption // contains filtered or unexported fields }
EmailAccount smtp client
type SMTPOption ¶
type SMTPOption struct { Addr string `yaml:"addr"` Username string `yaml:"username"` Password string `yaml:"password"` Nickname string `yaml:"nickname"` }
SMTPOption 发邮件参数
func (*SMTPOption) FromSettings ¶
func (opt *SMTPOption) FromSettings(sets []*settings.SettingItem) error
FromSettings 从数据库加载
func (SMTPOption) SettingGroupKeys ¶
func (opt SMTPOption) SettingGroupKeys() (string, []string)
SettingGroupKeys .
func (SMTPOption) ToSettings ¶
func (opt SMTPOption) ToSettings() []*settings.SettingItem
ToSettings 转换为数据库配置项
Click to show internal directories.
Click to hide internal directories.