Documentation
¶
Overview ¶
消息队列通知类型
Index ¶
Constants ¶
View Source
const ( SqlTypeNormal = "normal" SqlTypeJs = "js" )
View Source
const ( SqlEnvDsn = "dsn" SqlEnvDBType = "dbType" SqlEnvDriver = "driver" )
View Source
const ( TaskTypeQueue = "queue" TaskTypeSql = "sql" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Group string `json:"group"` // 任务组名
Type string `json:"type"` //任务类型:queue(消息队列消息发送) sql(执行sql) email(邮件发送) http(http请求)
SubType string `json:"subType"` //任务子类型 natsJs nats
Name string `json:"name"` // 任务名称
Code string `json:"code"` //任务编码
Params string `json:"params"` // 任务参数
Priority string `json:"priority"` //优先级: 6:critical 最高优先级 3: default 普通优先级 1:low 低优先级
Queue *Queue `json:"-"` //消息队列类型
Sql *Sql `json:"-"` //sql执行类型
}
func (*Info) GetTypeName ¶
func (*Info) ToPriority ¶
Click to show internal directories.
Click to hide internal directories.