Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultQueueSize = 1024 DefaultDbScanInterval = 10 )
Variables ¶
This section is empty.
Functions ¶
func AfterHandleTask ¶
func AfterHandleTask(task model.MessageTask, message model.MessageInfo, err error)
func InitMonitor ¶
func RunClearExpired ¶
Types ¶
type MessageTask ¶
type MessageTask interface { Run() HandleMessage(message model.MessageInfo) (err error) }
func New ¶
func New(ctx context.Context, executor sender.TaskExecutor, opts ...Option) (t MessageTask, err error)
type MonitorData ¶
type MonitorData struct { TaskId int `json:"taskId,omitempty"` MessageId int `json:"messageId,omitempty"` MessageCategory msg.MessageCategory `json:"messageCategory,omitempty"` Subject string `json:"subject,omitempty"` MessageInstanceId int `json:"messageInstanceId,omitempty"` Status int `json:"status,omitempty"` }
type SendMonitor ¶
type SendMonitor interface { Subscribe(c *websocket.Conn) UnSubscribe(c *websocket.Conn) Pub(msg MonitorData) }
func GetMonitor ¶
func GetMonitor() SendMonitor
Click to show internal directories.
Click to hide internal directories.