Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageSender ¶
type MessageSender interface { // send the message async AsyncSend(value []byte) error // flush all the messages, timeout is in ms. Flush(timeout int) error // free this instance. Close() }
var MsgSender MessageSender
func InitMessageSender ¶
func InitMessageSender(plugins map[string]*mods.YigPlugin) (MessageSender, error)
create the singleton MessageSender
Click to show internal directories.
Click to hide internal directories.