Documentation
¶
Index ¶
Constants ¶
View Source
const ( //MailKey 实时邮件队列 MailKey = "f_mail_list" //MailFastKey 超限名单的邮件队列 MailFastKey = "f_mail_list_fast" //RetryListKey 重试列表 RetryListKey = "f_retry_list" //RetryActionReply 评论重试 RetryActionReply = "reply" )
View Source
const ( FROM = "From" TO = "To" CC = "Cc" SUBJECT = "Subject" )
邮件的发件人、收件列表、抄送列表、主题
View Source
const EmailMonitor = "审核监控报警"
EmailMonitor 监控报警
View Source
const EmailPrivateArchive = "稿件私单"
EmailPrivateArchive 稿件私单
View Source
const EmailPrivateVideo = "任务/视频私单"
EmailPrivateVideo 一审私单
View Source
const EmailResFail = "失败"
EmailResFail 邮件发送失败
View Source
const EmailResOK = "成功"
EmailResOK 邮件发送成功
View Source
const EmailUP = "十万粉报备"
EmailUP 十万粉丝\优质\时政\企业up主报备
View Source
const LogBusEmail = 141
LogBusEmail 稿件邮件任务business id
View Source
const LogTypeEmailJob = 1
LogTypeEmailJob 稿件邮件任务type id, 报备邮件任务
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FastDetector ¶
type FastDetector struct {
// contains filtered or unexported fields
}
FastDetector detecte speed and unique analyze
func NewFastDetector ¶
func NewFastDetector(speedThreshold, overspeedThreshold int) *FastDetector
NewFastDetector new
func (*FastDetector) Detect ¶
func (fd *FastDetector) Detect(unique int64) (fast bool)
Detect 快慢探查, 超限名单只能被慢速/下一个超速名单/间隔5s后空名单代替,超限名单只有在(overspeedthreshold+1) * samesecthreshold时才确定,此时返回true
func (*FastDetector) IsFastUnique ¶
func (fd *FastDetector) IsFastUnique(unique int64) bool
IsFastUnique 是否为超限名单
Click to show internal directories.
Click to hide internal directories.