Documentation
¶
Index ¶
Constants ¶
View Source
const ( NotificationTaskTopicPrefix = "nf-task" NotificationTopicPrefix = "nf-job" MaxWorkingTasks = 5 MaxWorkingNotifications = 5 MaxTaskRetryTimes = 3 )
View Source
const ( DESC = "desc" ASC = "asc" )
View Source
const ( DefaultOffset = uint32(0) DefaultLimit = uint32(20) )
View Source
const ( NotifyTypeEmail = "email" NotifyTypeWebsocket = "websocket" NotifyTypeSms = "sms" NotifyTypeWeChat = "wechat" )
View Source
const ( StatusPending = "pending" StatusSending = "sending" StatusSuccessful = "successful" StatusFailed = "failed" )
View Source
const ( StatusActive = "active" StatusDisabled = "disabled" StatusDeleted = "deleted" )
View Source
const ( WsService = "ws_service" WsMessageType = "ws_message_type" WsMessagePrefix = "ws" )
View Source
const ( ContentFmt = "content_fmt" ContentFmtHtml = "html" ContentFmtNormal = "normal" )
View Source
const ( QueueTypeRedis = "redis" QueueTypeEtcd = "etcd" )
View Source
const (
DefaultSelectLimit = 200
)
View Source
const (
ServiceName = "Notification"
)
View Source
const (
TagName = "json"
)
View Source
const (
ValidationEmailNotifyTemplate = `` /* 11140-byte string literal not displayed */
)
Variables ¶
View Source
var NfStatuses = []string{ StatusPending, StatusSending, StatusSuccessful, StatusFailed, }
View Source
var NotifyTypes = []string{ NotifyTypeEmail, NotifyTypeWebsocket, NotifyTypeSms, NotifyTypeWeChat, }
View Source
var RecordStatuses = []string{ StatusActive, StatusDisabled, StatusDeleted, }
View Source
var TaskStatuses = []string{ StatusPending, StatusSending, StatusSuccessful, StatusFailed, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.