Documentation
¶
Index ¶
Constants ¶
View Source
const ( MessageFormat = "%s||%s||%s" // message key || message type || message body MessageSeparator = "||" )
Variables ¶
This section is empty.
Functions ¶
func FormatMessage ¶
func FormatMessage(msgKey string, messageType MessageType, body string) string
Types ¶
type MessageType ¶
type MessageType string
const ( Connect MessageType = "0" Body MessageType = "1" Close MessageType = "2" )
Click to show internal directories.
Click to hide internal directories.