Documentation ¶
Index ¶
- type Dao
- func (d *Dao) Close() (err error)
- func (d *Dao) FastChan() <-chan int
- func (d *Dao) MonitorNotifyTemplate(subject string, body string, toEmails []string) (tpl *email.Template)
- func (d *Dao) NotifyEmailTemplate(params map[string]string) (tpl *email.Template)
- func (d *Dao) PopRedis(c context.Context, key string) (bs []byte, err error)
- func (d *Dao) PrivateEmailTemplate(params map[string]string) (tpl *email.Template)
- func (d *Dao) PushRedis(c context.Context, a interface{}, key string) (err error)
- func (d *Dao) PushToRedis(c context.Context, tpl *email.Template) (isFast bool, key string, err error)
- func (d *Dao) RemoveRedis(c context.Context, key string, member ...interface{}) (reply int, err error)
- func (d *Dao) SendMail(tpl *email.Template)
- func (d *Dao) Start(key string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct { FansAddr map[int16][]string PrivateAddr map[string][]string // contains filtered or unexported fields }
Dao is redis dao.
func (*Dao) MonitorNotifyTemplate ¶
func (d *Dao) MonitorNotifyTemplate(subject string, body string, toEmails []string) (tpl *email.Template)
MinitorNotifyTeamplate 审核监控报警邮件模板
func (*Dao) NotifyEmailTemplate ¶
NotifyEmailTemplate 优质UP主/时政UP主/企业UP主/十万粉丝报备邮件
func (*Dao) PrivateEmailTemplate ¶
PrivateEmailTemplate 私单报备邮件模板
func (*Dao) PushToRedis ¶
func (d *Dao) PushToRedis(c context.Context, tpl *email.Template) (isFast bool, key string, err error)
PushToRedis start to push email to redis according to speed
Click to show internal directories.
Click to hide internal directories.