email

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

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 是否为超限名单

func (*FastDetector) String

func (fd *FastDetector) String() string

String string info

type Retry

type Retry struct {
	AID        int64  `json:"aid"`
	Action     string `json:"action"`
	Flag       int64  `json:"flag"`
	FlagA      int64  `json:"flag_a"`
	CreateTime int64  `json:"create_time"`
}

Retry retry

type Template

type Template struct {
	Headers     map[string][]string
	Body        string
	ContentType string
	Type        string
	AID         int64
	UID         int64
	Username    string
	Department  string
}

Template 邮件模板

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL