Documentation ¶
Index ¶
Constants ¶
View Source
const ( ActionHello messages.Action = "hello" ActionHeartbeat = "heartbeat" ActionNotifyUnknownAction = "notify.unknown.action" ActionChatMessage = "message.chat" ActionChatMessageResend = "message.chat.resend" ActionGroupMessage = "message.group" ActionMessageFailed = "message.failed.send" ActionNotifyNeedAuth = "notify.auth" ActionNotifyKickOut = "notify.kickout" ActionNotifyNewContact = "notify.contact" ActionNotifyGroup = "notify.group" ActionNotifyAccountLogin = "notify.login" ActionNotifyAccountLogout = "notify.logout" ActionNotifyError = "notify.error" ActionAckRequest = "ack.request" ActionAckGroupMsg = "ack.group.msg" ActionAckMessage = "ack.message" ActionAckNotify = "ack.notify" ActionApiAuth = "api.auth" ActionApiFailed = "api.failed" ActionApiSuccess = "api.success" ActionClientCustom = "message.cli" NotifyKickOut messages.Action = "notify.kickout" AckOffline = "ack.offline" )
Variables ¶
This section is empty.
Functions ¶
func CreateKickOutMessage ¶
func CreateKickOutMessage(c *gate.Info) *messages.GlideMessage
Types ¶
type ClientCustom ¶
type ClientCustom struct { Type string `json:"type,omitempty"` Content interface{} `json:"content,omitempty"` }
ClientCustom client custom message, server does not store to database.
Click to show internal directories.
Click to hide internal directories.