Documentation
¶
Index ¶
- type CheckAuthRequest
- type CheckAuthResponse
- type ConnectReply
- type ConnectRequest
- type DisConnectReply
- type DisConnectRequest
- type GetUserInfoRequest
- type GetUserInfoResponse
- type LoginRequest
- type LoginResponse
- type LogoutRequest
- type LogoutResponse
- type Msg
- type PushMsgRequest
- type PushRoomCountRequest
- type PushRoomMsgRequest
- type RedisMsg
- type RedisRoomCountMsg
- type RedisRoomInfo
- type RegisterReply
- type RegisterRequest
- type Send
- type SuccessReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckAuthResponse ¶
CheckAuthResponse ...
type ConnectRequest ¶
type ConnectRequest struct { AuthToken string `json:"authToken"` RoomID int `json:"roomId"` ServerID int `json:"serverId"` }
ConnectRequest ...
type DisConnectRequest ¶
DisConnectRequest ...
type GetUserInfoResponse ¶
GetUserInfoResponse ...
type Msg ¶
type Msg struct { Ver int `json:"ver"` // protocol version Operation int `json:"op"` // operation for request SeqID string `json:"seq"` // sequence number chosen by client Body []byte `json:"body"` // binary body bytes }
Msg ...
type PushRoomCountRequest ¶
PushRoomCountRequest ...
type PushRoomMsgRequest ¶
PushRoomMsgRequest ...
type RedisMsg ¶
type RedisMsg struct { Op int `json:"op"` ServerID int `json:"serverId,omitempty"` RoomID int `json:"roomId,omitempty"` UserID int `json:"userId,omitempty"` Msg []byte `json:"msg"` Count int `json:"count"` RoomUserInfo map[string]string `json:"roomUserInfo"` }
RedisMsg ...
type RedisRoomCountMsg ¶
RedisRoomCountMsg ...
type RedisRoomInfo ¶
type RedisRoomInfo struct { Op int `json:"op"` RoomID int `json:"roomId,omitempty"` Count int `json:"count,omitempty"` RoomUserInfo map[string]string `json:"roomUserInfo"` }
RedisRoomInfo ...
type RegisterRequest ¶
RegisterRequest ...
type Send ¶
type Send struct { Code int `json:"code"` Msg string `json:"msg"` FromUserID int `json:"fromUserId"` FromUserName string `json:"fromUserName"` ToUserID int `json:"toUserId"` ToUserName string `json:"toUserName"` RoomID int `json:"roomId"` Op int `json:"op"` CreateTime string `json:"createTime"` }
Send ...
type SuccessReply ¶
SuccessReply ...
Click to show internal directories.
Click to hide internal directories.