Documentation ¶
Index ¶
- func Write(r *ghttp.Request, errorCode ErrorCode, data interface{})
- func WsCloseMessageListener(wsHandle *ghttp.WebSocket)
- func WsSendBinaryMessage(wsHandle *ghttp.WebSocket, msgContent []byte)
- func WsSendJsonMessage(wsHandle *ghttp.WebSocket, msgContent *WSMsg)
- func WsSendJsonMessageToAll(msgContent *WSMsg)
- func WsValidateSign(msg *WSMsg) bool
- type ErrorCode
- type HttpModel
- type HttpShowDialogMessage
- type WSMsg
- type WSMsgType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WsCloseMessageListener ¶
WsCloseMessageListener 停止一个wsHandle的消息监听
func WsSendBinaryMessage ¶
WsSendBinaryMessage 发送二进制消息
func WsSendJsonMessage ¶
WsSendJsonMessage 发送json消息
func WsSendJsonMessageToAll ¶
func WsSendJsonMessageToAll(msgContent *WSMsg)
Types ¶
type HttpModel ¶
type HttpModel struct { Error ErrorCode `json:"error"` Message interface{} `json:"message"` }
type HttpShowDialogMessage ¶
Click to show internal directories.
Click to hide internal directories.