Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
chatroom.proto client.proto groupchat.proto
It has these top-level messages:
CRPair CRUser ChatRoom CreateChatRoomRequest CreateChatRoomResponse CreateMultiChatRoomRequest CreateMultiChatRoomResponse GetChatRoomDetailRequest GetChatRoomDetailResponse ApplyJoinChatRoomRequest ApplyJoinChatRoomResponse QuitChatRoomRequest QuitChatRoomResponse QueryAllGameRoomRequest QueryAllGameRoomResponse QueryChatRoomIDRequest QueryChatRoomIDResponse UpdateRoomIDRequest UpdateRoomIDResponse UpdateChatRoomRequest UpdateChatRoomResponse KickChatRoomMemberRequest KickChatRoomMemberResponse SyncRoomToDBRequest CreateChatRoomNotify MemberJoinChatRoomNotify MemberQuitChatRoomNotify KickMemberNotify UpdateChatRoomNotify ChatRoomMessageRequest ChatRoomMessageResponse ChatRoomNewMsg ChatRoomErrorMsg ChatRoomMNotify SubscribeRequest SubscribeResponse ChatRoomUpToServer ChatRoomDownToUser ChatRoomPacket Pair Error User Info LoginReq LoginResp ChatReq ChatResp GetInfoReq GetInfoResp GetMultiInfosReq GetMultiInfosResp LogoutReq LogoutResp InitLoginReq InitLoginResp Service_Req Service_Resp ReqEQ1User RespEQ1User Ex1QueryUserStatusReq Ex1QueryUserStatusResp Request Response NewMessageNotify ReLoginNotify ReConnectNotify Notify Ack RouteInfo Proxy Message
Index ¶
- Constants
- func CompressChatRoomNewMsg(msg *logic.ChatRoomMessage) ([]byte, error)
- func CreateMsgNotify(infoType string, infoContent []byte, infoId int64, sender, receiver string, ...) (*network.XimpBuffer, error)
- type Ack
- type ApplyJoinChatRoomRequest
- func (*ApplyJoinChatRoomRequest) Descriptor() ([]byte, []int)
- func (m *ApplyJoinChatRoomRequest) GetNoUserlist() bool
- func (m *ApplyJoinChatRoomRequest) GetRoom() *ChatRoom
- func (m *ApplyJoinChatRoomRequest) GetRoomid() []byte
- func (m *ApplyJoinChatRoomRequest) GetUserdata() []byte
- func (m *ApplyJoinChatRoomRequest) GetUseridType() int32
- func (*ApplyJoinChatRoomRequest) ProtoMessage()
- func (m *ApplyJoinChatRoomRequest) Reset()
- func (m *ApplyJoinChatRoomRequest) String() string
- type ApplyJoinChatRoomResponse
- func (*ApplyJoinChatRoomResponse) Descriptor() ([]byte, []int)
- func (m *ApplyJoinChatRoomResponse) GetPullLost() bool
- func (m *ApplyJoinChatRoomResponse) GetRoom() *ChatRoom
- func (*ApplyJoinChatRoomResponse) ProtoMessage()
- func (m *ApplyJoinChatRoomResponse) Reset()
- func (m *ApplyJoinChatRoomResponse) String() string
- type CRPair
- type CRUser
- func (*CRUser) Descriptor() ([]byte, []int)
- func (m *CRUser) GetName() string
- func (m *CRUser) GetPrivatesetting() []*CRPair
- func (m *CRUser) GetPublicsetting() []*CRPair
- func (m *CRUser) GetStatus() int32
- func (m *CRUser) GetUserdata() []byte
- func (m *CRUser) GetUserid() []byte
- func (*CRUser) ProtoMessage()
- func (m *CRUser) Reset()
- func (m *CRUser) String() string
- type ChatReq
- func (*ChatReq) Descriptor() ([]byte, []int)
- func (m *ChatReq) GetBody() []byte
- func (m *ChatReq) GetBodyId() uint32
- func (m *ChatReq) GetBodyType() uint32
- func (m *ChatReq) GetExpireTime() uint32
- func (m *ChatReq) GetMParameter() []byte
- func (m *ChatReq) GetMoreFlag() uint32
- func (m *ChatReq) GetSParameter() []byte
- func (m *ChatReq) GetServiceId() uint32
- func (m *ChatReq) GetStore() bool
- func (*ChatReq) ProtoMessage()
- func (m *ChatReq) Reset()
- func (m *ChatReq) String() string
- type ChatResp
- type ChatRoom
- func (*ChatRoom) Descriptor() ([]byte, []int)
- func (m *ChatRoom) GetBlacklist() [][]byte
- func (m *ChatRoom) GetCreater() *CRUser
- func (m *ChatRoom) GetGameid() string
- func (m *ChatRoom) GetMaxmsgid() uint64
- func (m *ChatRoom) GetMembers() []*CRUser
- func (m *ChatRoom) GetMemcountlimit() uint64
- func (m *ChatRoom) GetName() string
- func (m *ChatRoom) GetPartnerdata() []byte
- func (m *ChatRoom) GetProperties() []*CRPair
- func (m *ChatRoom) GetRoomid() []byte
- func (m *ChatRoom) GetRoomtype() string
- func (m *ChatRoom) GetTempmembers() []*CRUser
- func (m *ChatRoom) GetVersion() uint64
- func (*ChatRoom) ProtoMessage()
- func (m *ChatRoom) Reset()
- func (m *ChatRoom) String() string
- type ChatRoomDownToUser
- func (*ChatRoomDownToUser) Descriptor() ([]byte, []int)
- func (m *ChatRoomDownToUser) GetApplyjoinchatroomresp() *ApplyJoinChatRoomResponse
- func (m *ChatRoomDownToUser) GetChatroommessageresp() *ChatRoomMessageResponse
- func (m *ChatRoomDownToUser) GetCreatechatroomresp() *CreateChatRoomResponse
- func (m *ChatRoomDownToUser) GetCreaterooms() *CreateMultiChatRoomResponse
- func (m *ChatRoomDownToUser) GetErrormsgnotify() *ChatRoomErrorMsg
- func (m *ChatRoomDownToUser) GetGetchatroominforesp() *GetChatRoomDetailResponse
- func (m *ChatRoomDownToUser) GetKickmemberresp() *KickChatRoomMemberResponse
- func (m *ChatRoomDownToUser) GetMemberjoinnotify() *MemberJoinChatRoomNotify
- func (m *ChatRoomDownToUser) GetMemberquitnotify() *MemberQuitChatRoomNotify
- func (m *ChatRoomDownToUser) GetMultinotify() []*ChatRoomMNotify
- func (m *ChatRoomDownToUser) GetNewmsgnotify() *ChatRoomNewMsg
- func (m *ChatRoomDownToUser) GetPayloadtype() uint32
- func (m *ChatRoomDownToUser) GetQueryallgameroomresp() *QueryAllGameRoomResponse
- func (m *ChatRoomDownToUser) GetQuerychatroomidresp() *QueryChatRoomIDResponse
- func (m *ChatRoomDownToUser) GetQuitchatroomresp() *QuitChatRoomResponse
- func (m *ChatRoomDownToUser) GetReason() []byte
- func (m *ChatRoomDownToUser) GetResult() int32
- func (m *ChatRoomDownToUser) GetSubresp() *SubscribeResponse
- func (m *ChatRoomDownToUser) GetUpdatechatroomresp() *UpdateChatRoomResponse
- func (m *ChatRoomDownToUser) GetUpdategameidresp() *UpdateRoomIDResponse
- func (*ChatRoomDownToUser) ProtoMessage()
- func (m *ChatRoomDownToUser) Reset()
- func (m *ChatRoomDownToUser) String() string
- type ChatRoomErrorMsg
- func (*ChatRoomErrorMsg) Descriptor() ([]byte, []int)
- func (m *ChatRoomErrorMsg) GetClientsn() uint64
- func (m *ChatRoomErrorMsg) GetErrorcode() int32
- func (m *ChatRoomErrorMsg) GetRoomid() []byte
- func (*ChatRoomErrorMsg) ProtoMessage()
- func (m *ChatRoomErrorMsg) Reset()
- func (m *ChatRoomErrorMsg) String() string
- type ChatRoomMNotify
- func (*ChatRoomMNotify) Descriptor() ([]byte, []int)
- func (m *ChatRoomMNotify) GetData() []byte
- func (m *ChatRoomMNotify) GetMemcount() int32
- func (m *ChatRoomMNotify) GetRegmemcount() int32
- func (m *ChatRoomMNotify) GetType() int32
- func (*ChatRoomMNotify) ProtoMessage()
- func (m *ChatRoomMNotify) Reset()
- func (m *ChatRoomMNotify) String() string
- type ChatRoomMessageRequest
- func (*ChatRoomMessageRequest) Descriptor() ([]byte, []int)
- func (m *ChatRoomMessageRequest) GetClientcache() []byte
- func (m *ChatRoomMessageRequest) GetClientparameter() []byte
- func (m *ChatRoomMessageRequest) GetCreatenotify() *CreateChatRoomNotify
- func (m *ChatRoomMessageRequest) GetJoinnotify() *MemberJoinChatRoomNotify
- func (m *ChatRoomMessageRequest) GetKicknotify() *KickMemberNotify
- func (m *ChatRoomMessageRequest) GetMsgcontent() []byte
- func (m *ChatRoomMessageRequest) GetMsgtype() int32
- func (m *ChatRoomMessageRequest) GetPropertylist() []*CRPair
- func (m *ChatRoomMessageRequest) GetQuitnotify() *MemberQuitChatRoomNotify
- func (m *ChatRoomMessageRequest) GetRoomid() []byte
- func (m *ChatRoomMessageRequest) GetSender() *CRUser
- func (m *ChatRoomMessageRequest) GetUpdatenotify() *UpdateChatRoomNotify
- func (*ChatRoomMessageRequest) ProtoMessage()
- func (m *ChatRoomMessageRequest) Reset()
- func (m *ChatRoomMessageRequest) String() string
- type ChatRoomMessageResponse
- type ChatRoomNewMsg
- func (*ChatRoomNewMsg) Descriptor() ([]byte, []int)
- func (m *ChatRoomNewMsg) GetMaxid() uint32
- func (m *ChatRoomNewMsg) GetMemcount() int32
- func (m *ChatRoomNewMsg) GetMsgcontent() []byte
- func (m *ChatRoomNewMsg) GetMsgid() uint32
- func (m *ChatRoomNewMsg) GetMsgtype() int32
- func (m *ChatRoomNewMsg) GetRegmemcount() int32
- func (m *ChatRoomNewMsg) GetRoomid() []byte
- func (m *ChatRoomNewMsg) GetSender() *CRUser
- func (m *ChatRoomNewMsg) GetTimestamp() uint64
- func (*ChatRoomNewMsg) ProtoMessage()
- func (m *ChatRoomNewMsg) Reset()
- func (m *ChatRoomNewMsg) String() string
- type ChatRoomPacket
- func (*ChatRoomPacket) Descriptor() ([]byte, []int)
- func (m *ChatRoomPacket) GetAppid() uint32
- func (m *ChatRoomPacket) GetClientSn() uint64
- func (m *ChatRoomPacket) GetRoomid() []byte
- func (m *ChatRoomPacket) GetToServerData() *ChatRoomUpToServer
- func (m *ChatRoomPacket) GetToUserData() *ChatRoomDownToUser
- func (m *ChatRoomPacket) GetUuid() string
- func (*ChatRoomPacket) ProtoMessage()
- func (m *ChatRoomPacket) Reset()
- func (m *ChatRoomPacket) String() string
- type ChatRoomUpToServer
- func (*ChatRoomUpToServer) Descriptor() ([]byte, []int)
- func (m *ChatRoomUpToServer) GetApplyjoinchatroomreq() *ApplyJoinChatRoomRequest
- func (m *ChatRoomUpToServer) GetChatroommessagereq() *ChatRoomMessageRequest
- func (m *ChatRoomUpToServer) GetCreatechatroomreq() *CreateChatRoomRequest
- func (m *ChatRoomUpToServer) GetCreaterooms() *CreateMultiChatRoomRequest
- func (m *ChatRoomUpToServer) GetGetchatroominforeq() *GetChatRoomDetailRequest
- func (m *ChatRoomUpToServer) GetKickmemberreq() *KickChatRoomMemberRequest
- func (m *ChatRoomUpToServer) GetPayloadtype() uint32
- func (m *ChatRoomUpToServer) GetQueryallgameroomreq() *QueryAllGameRoomRequest
- func (m *ChatRoomUpToServer) GetQuerychatroomidreq() *QueryChatRoomIDRequest
- func (m *ChatRoomUpToServer) GetQuitchatroomreq() *QuitChatRoomRequest
- func (m *ChatRoomUpToServer) GetSubreq() *SubscribeRequest
- func (m *ChatRoomUpToServer) GetSyncroomtodba() *SyncRoomToDBRequest
- func (m *ChatRoomUpToServer) GetUpdatechatroomreq() *UpdateChatRoomRequest
- func (m *ChatRoomUpToServer) GetUpdategameidreq() *UpdateRoomIDRequest
- func (*ChatRoomUpToServer) ProtoMessage()
- func (m *ChatRoomUpToServer) Reset()
- func (m *ChatRoomUpToServer) String() string
- type CreateChatRoomNotify
- type CreateChatRoomRequest
- func (*CreateChatRoomRequest) Descriptor() ([]byte, []int)
- func (m *CreateChatRoomRequest) GetCreater() *CRUser
- func (m *CreateChatRoomRequest) GetGameid() string
- func (m *CreateChatRoomRequest) GetMembers() []*CRUser
- func (m *CreateChatRoomRequest) GetMemcountlimit() uint64
- func (m *CreateChatRoomRequest) GetProperties() []*CRPair
- func (m *CreateChatRoomRequest) GetRoomname() string
- func (m *CreateChatRoomRequest) GetRoomtype() string
- func (*CreateChatRoomRequest) ProtoMessage()
- func (m *CreateChatRoomRequest) Reset()
- func (m *CreateChatRoomRequest) String() string
- type CreateChatRoomResponse
- type CreateMultiChatRoomRequest
- func (*CreateMultiChatRoomRequest) Descriptor() ([]byte, []int)
- func (m *CreateMultiChatRoomRequest) GetCreater() *CRUser
- func (m *CreateMultiChatRoomRequest) GetRooms() []*CreateChatRoomRequest
- func (*CreateMultiChatRoomRequest) ProtoMessage()
- func (m *CreateMultiChatRoomRequest) Reset()
- func (m *CreateMultiChatRoomRequest) String() string
- type CreateMultiChatRoomResponse
- func (*CreateMultiChatRoomResponse) Descriptor() ([]byte, []int)
- func (m *CreateMultiChatRoomResponse) GetCreater() *CRUser
- func (m *CreateMultiChatRoomResponse) GetRooms() []*ChatRoom
- func (*CreateMultiChatRoomResponse) ProtoMessage()
- func (m *CreateMultiChatRoomResponse) Reset()
- func (m *CreateMultiChatRoomResponse) String() string
- type Error
- type Ex1QueryUserStatusReq
- type Ex1QueryUserStatusResp
- type GetChatRoomDetailRequest
- func (*GetChatRoomDetailRequest) Descriptor() ([]byte, []int)
- func (m *GetChatRoomDetailRequest) GetIndex() int32
- func (m *GetChatRoomDetailRequest) GetOffset() int32
- func (m *GetChatRoomDetailRequest) GetRoomid() []byte
- func (*GetChatRoomDetailRequest) ProtoMessage()
- func (m *GetChatRoomDetailRequest) Reset()
- func (m *GetChatRoomDetailRequest) String() string
- type GetChatRoomDetailResponse
- type GetInfoReq
- func (*GetInfoReq) Descriptor() ([]byte, []int)
- func (m *GetInfoReq) GetGetInfoId() int64
- func (m *GetInfoReq) GetGetInfoOffset() int32
- func (m *GetInfoReq) GetInfoType() string
- func (m *GetInfoReq) GetSParameter() []byte
- func (*GetInfoReq) ProtoMessage()
- func (m *GetInfoReq) Reset()
- func (m *GetInfoReq) String() string
- type GetInfoResp
- func (*GetInfoResp) Descriptor() ([]byte, []int)
- func (m *GetInfoResp) GetInfoType() string
- func (m *GetInfoResp) GetInfos() []*Info
- func (m *GetInfoResp) GetLastInfoId() int64
- func (m *GetInfoResp) GetSParameter() []byte
- func (*GetInfoResp) ProtoMessage()
- func (m *GetInfoResp) Reset()
- func (m *GetInfoResp) String() string
- type GetMultiInfosReq
- func (*GetMultiInfosReq) Descriptor() ([]byte, []int)
- func (m *GetMultiInfosReq) GetGetInfoIds() []int64
- func (m *GetMultiInfosReq) GetInfoType() string
- func (m *GetMultiInfosReq) GetSParameter() []byte
- func (*GetMultiInfosReq) ProtoMessage()
- func (m *GetMultiInfosReq) Reset()
- func (m *GetMultiInfosReq) String() string
- type GetMultiInfosResp
- func (*GetMultiInfosResp) Descriptor() ([]byte, []int)
- func (m *GetMultiInfosResp) GetInfoType() string
- func (m *GetMultiInfosResp) GetInfos() []*Info
- func (m *GetMultiInfosResp) GetLastInfoId() int64
- func (m *GetMultiInfosResp) GetSParameter() []byte
- func (*GetMultiInfosResp) ProtoMessage()
- func (m *GetMultiInfosResp) Reset()
- func (m *GetMultiInfosResp) String() string
- type GroupDownPacket
- func (*GroupDownPacket) Descriptor() ([]byte, []int)
- func (m *GroupDownPacket) GetGetmsgresp() []*GroupMessageResp
- func (m *GroupDownPacket) GetNewmsgnotify() []*GroupNotify
- func (m *GroupDownPacket) GetPayload() uint32
- func (m *GroupDownPacket) GetReason() string
- func (m *GroupDownPacket) GetResult() int32
- func (m *GroupDownPacket) GetSleep() int32
- func (m *GroupDownPacket) GetSyncresp() []*GroupInfo
- func (*GroupDownPacket) ProtoMessage()
- func (m *GroupDownPacket) Reset()
- func (m *GroupDownPacket) String() string
- type GroupInfo
- func (*GroupInfo) Descriptor() ([]byte, []int)
- func (m *GroupInfo) GetGroupid() string
- func (m *GroupInfo) GetMaxid() uint64
- func (m *GroupInfo) GetStartid() uint64
- func (m *GroupInfo) GetVersion() int64
- func (*GroupInfo) ProtoMessage()
- func (m *GroupInfo) Reset()
- func (m *GroupInfo) String() string
- type GroupMessage
- func (*GroupMessage) Descriptor() ([]byte, []int)
- func (m *GroupMessage) GetContent() string
- func (m *GroupMessage) GetMsgid() uint64
- func (m *GroupMessage) GetSender() string
- func (m *GroupMessage) GetSendtime() int64
- func (*GroupMessage) ProtoMessage()
- func (m *GroupMessage) Reset()
- func (m *GroupMessage) String() string
- type GroupMessageReq
- func (*GroupMessageReq) Descriptor() ([]byte, []int)
- func (m *GroupMessageReq) GetGroupid() string
- func (m *GroupMessageReq) GetOffset() int32
- func (m *GroupMessageReq) GetStartid() uint64
- func (m *GroupMessageReq) GetTraceid() string
- func (*GroupMessageReq) ProtoMessage()
- func (m *GroupMessageReq) Reset()
- func (m *GroupMessageReq) String() string
- type GroupMessageResp
- func (*GroupMessageResp) Descriptor() ([]byte, []int)
- func (m *GroupMessageResp) GetGroupid() string
- func (m *GroupMessageResp) GetMaxid() uint64
- func (m *GroupMessageResp) GetMsglist() []*GroupMessage
- func (m *GroupMessageResp) GetTraceid() string
- func (m *GroupMessageResp) GetVersion() int64
- func (*GroupMessageResp) ProtoMessage()
- func (m *GroupMessageResp) Reset()
- func (m *GroupMessageResp) String() string
- type GroupNotify
- type GroupSyncReq
- type GroupUpPacket
- func (*GroupUpPacket) Descriptor() ([]byte, []int)
- func (m *GroupUpPacket) GetGetmsgreq() []*GroupMessageReq
- func (m *GroupUpPacket) GetPayload() uint32
- func (m *GroupUpPacket) GetSyncreq() []*GroupSyncReq
- func (*GroupUpPacket) ProtoMessage()
- func (m *GroupUpPacket) Reset()
- func (m *GroupUpPacket) String() string
- type Info
- type InitLoginReq
- type InitLoginResp
- type KickChatRoomMemberRequest
- func (*KickChatRoomMemberRequest) Descriptor() ([]byte, []int)
- func (m *KickChatRoomMemberRequest) GetMembers() []*CRUser
- func (m *KickChatRoomMemberRequest) GetRoom() *ChatRoom
- func (m *KickChatRoomMemberRequest) GetRoomid() []byte
- func (*KickChatRoomMemberRequest) ProtoMessage()
- func (m *KickChatRoomMemberRequest) Reset()
- func (m *KickChatRoomMemberRequest) String() string
- type KickChatRoomMemberResponse
- type KickMemberNotify
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)
- func (m *LoginReq) GetAppId() uint32
- func (m *LoginReq) GetDeviceid() string
- func (m *LoginReq) GetHeartFeq() uint32
- func (m *LoginReq) GetMobileType() string
- func (m *LoginReq) GetNetType() uint32
- func (m *LoginReq) GetNotEncrypt() bool
- func (m *LoginReq) GetPlatform() string
- func (m *LoginReq) GetSecretRam() []byte
- func (m *LoginReq) GetServerRam() string
- func (m *LoginReq) GetVerfCode() string
- func (*LoginReq) ProtoMessage()
- func (m *LoginReq) Reset()
- func (m *LoginReq) String() string
- type LoginResp
- func (*LoginResp) Descriptor() ([]byte, []int)
- func (m *LoginResp) GetClientLoginIp() string
- func (m *LoginResp) GetServerip() string
- func (m *LoginResp) GetSessionId() string
- func (m *LoginResp) GetSessionKey() string
- func (m *LoginResp) GetTimestamp() uint32
- func (*LoginResp) ProtoMessage()
- func (m *LoginResp) Reset()
- func (m *LoginResp) String() string
- type LogoutReq
- type LogoutResp
- type MemberJoinChatRoomNotify
- type MemberQuitChatRoomNotify
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetAck() *Ack
- func (m *Message) GetClientData() uint64
- func (m *Message) GetMsgid() uint32
- func (m *Message) GetNotify() *Notify
- func (m *Message) GetProxyMesg() *Proxy
- func (m *Message) GetReceiver() string
- func (m *Message) GetReceiverType() string
- func (m *Message) GetReq() *Request
- func (m *Message) GetResp() *Response
- func (m *Message) GetSender() string
- func (m *Message) GetSenderJid() string
- func (m *Message) GetSenderType() string
- func (m *Message) GetSn() uint64
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- type NewMessageNotify
- func (*NewMessageNotify) Descriptor() ([]byte, []int)
- func (m *NewMessageNotify) GetInfoContent() []byte
- func (m *NewMessageNotify) GetInfoId() int64
- func (m *NewMessageNotify) GetInfoType() string
- func (m *NewMessageNotify) GetQueryAfterSeconds() uint32
- func (*NewMessageNotify) ProtoMessage()
- func (m *NewMessageNotify) Reset()
- func (m *NewMessageNotify) String() string
- type Notify
- type Pair
- type Proxy
- type QueryAllGameRoomRequest
- type QueryAllGameRoomResponse
- type QueryChatRoomIDRequest
- type QueryChatRoomIDResponse
- func (*QueryChatRoomIDResponse) Descriptor() ([]byte, []int)
- func (m *QueryChatRoomIDResponse) GetGameid() string
- func (m *QueryChatRoomIDResponse) GetRoomid() []byte
- func (*QueryChatRoomIDResponse) ProtoMessage()
- func (m *QueryChatRoomIDResponse) Reset()
- func (m *QueryChatRoomIDResponse) String() string
- type QuitChatRoomRequest
- type QuitChatRoomResponse
- type ReConnectNotify
- type ReLoginNotify
- type ReqEQ1User
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetChat() *ChatReq
- func (m *Request) GetE1QueryUser() *Ex1QueryUserStatusReq
- func (m *Request) GetGetInfo() *GetInfoReq
- func (m *Request) GetGetMultiInfos() *GetMultiInfosReq
- func (m *Request) GetInitLoginReq() *InitLoginReq
- func (m *Request) GetLogin() *LoginReq
- func (m *Request) GetLogout() *LogoutReq
- func (m *Request) GetServiceReq() *Service_Req
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- type RespEQ1User
- func (*RespEQ1User) Descriptor() ([]byte, []int)
- func (m *RespEQ1User) GetAppId() uint32
- func (m *RespEQ1User) GetClientVer() uint32
- func (m *RespEQ1User) GetJid() string
- func (m *RespEQ1User) GetMobileType() string
- func (m *RespEQ1User) GetPlatform() string
- func (m *RespEQ1User) GetStatus() int32
- func (m *RespEQ1User) GetUserType() string
- func (m *RespEQ1User) GetUserid() string
- func (*RespEQ1User) ProtoMessage()
- func (m *RespEQ1User) Reset()
- func (m *RespEQ1User) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetChat() *ChatResp
- func (m *Response) GetE1QueryUser() *Ex1QueryUserStatusResp
- func (m *Response) GetError() *Error
- func (m *Response) GetGetInfo() *GetInfoResp
- func (m *Response) GetGetMultiInfos() *GetMultiInfosResp
- func (m *Response) GetInitLoginResp() *InitLoginResp
- func (m *Response) GetLogin() *LoginResp
- func (m *Response) GetLogout() *LogoutResp
- func (m *Response) GetServiceResp() *Service_Resp
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- type RouteInfo
- type Service_Req
- type Service_Resp
- type SubscribeRequest
- type SubscribeResponse
- type SyncRoomToDBRequest
- type UpdateChatRoomNotify
- type UpdateChatRoomRequest
- type UpdateChatRoomResponse
- type UpdateRoomIDRequest
- type UpdateRoomIDResponse
- type User
Constants ¶
const ( LOGIN_REQ = 100001 CHAT_REQ = 100002 GET_INFO_REQ = 100004 LOGOUT_REQ = 100005 INIT_LOGIN_REQ = 100009 SERVICE_REQ = 100011 EX1_QUERY_USER_STATUS_REQ = 100012 GET_MULITI_INFOS_REQ = 100100 )
const ( LOGIN_RESP = 200001 CHAT_RESP = 200002 GET_INFO_RESP = 200004 LOGOUT_RESP = 200005 INIT_LOGIN_RESP = 200009 SERVICE_RESP = 200011 EX1_QUERY_USER_STATUS_RESP = 200012 GET_MULTI_INFOS_RESP = 200100 )
const ( NEW_MESSAGE_NOTIFY = 300000 RE_LOGIN_NOTIFY = 300001 RE_CONNECT_NOTIFY = 300002 )
const ( CHATROOM_SERVICE_ID = 10000006 CR_PAYLOAD_QUERY = 101 // 查询聊天室信息 CR_PAYLOAD_JOIN = 102 // 加入聊天室 CR_PAYLOAD_QUIT = 103 // 退出聊天室 CR_PAYLOAD_SUB = 109 // 订阅聊天室消息 CR_PAYLOAD_MESSAGE = 300 // 聊天室消息 CR_PAYLOAD_INCOMING_MSG = 1000 // 消息通知 CR_PAYLOAD_MEMBER_ADDED = 1001 // 加入通知 CR_PAYLOAD_MEMBER_REMOVED = 1002 // 退出通知 CR_PAYLOAD_COMPRESSED = 1003 // 压缩协议 CR_PAYLOAD_JOIN_RESP = 102 //加入聊天室回包 CR_PAYLOAD_QUIT_RESP = 103 // 退了聊天室回包 GROUP_SERVICE_ID = 10000001 GC_PAYLOAD_SYNC = 108 // 同步群的最大消息id和版本号 GC_PAYLOAD_MSG_REQ_RESP = 109 // 拉取消息返回 GC_PAYLOAD_NEW_MSG_NOTIFY = 200 // 新消息 )
const ( /** * 严重错误, 发送该错误, 给客户端发送错误后需要断连 */ ERR_BAD_SEQUENCE = 1001 // 客户端发包的次序不正确, 比如登录需要1: InitLogin --> Login, 如果不是这个顺序报该错误 ERR_INVALID_SENDER = 1003 // 用于站内(上行也走长连接), 发消息时, 如果sender和对应的sender_type不匹配报该错误 ERR_TOO_FREQUENTLY = 1004 // 客户端上行包(pb.Message)的频度超过每分钟200个时, 报该错误然后断连 ERR_DBA_EXCEPTION = 1006 // 访问dba抛异常, 客户端登录时收到该错误码后下次登录至少在5分钟之后 ERR_SESSION_EXCEPTION = 1007 // 访问session抛异常, 客户端登录时收到该错误码后下次登录至少在5分钟之后 ERR_USER_INVALID = 1008 // 登录失败, 用户名和密码不匹配 ERR_ROUTER_EXCEPTION = 1009 // router 异常报错 ERR_SESSION_REFUSED = 1011 // 访问session抛异常, 客户端登录时收到该错误码后下次登录至少在5分钟之后 ERR_DBA_TOO_BUSY = 1012 // DBA过于繁忙, 客户端登录时收到该错误码后下次登录至少在5分钟之后 ERR_BAD_PARAM = 1013 // 现在的参数错误,原来是SRM client抛出异常 ERR_SERVER_OVERLOADED = 1015 // 服务器过载, 客户端登录时收到该错误码后下次登录至少在5分钟之后 ERR_LOGGED_IN_ELSEWHERE = 1016 // 客户端在别处登录, 如果发现同一实例在别处登录, 那么先给要被下线的客户度该错误, 然后断连 /** * 普通错误, 如果登录过程中碰到需要断连, 否则不需要 */ ERR_DBA_GENERIC = 2000 // DB报错 ERR_SESSION_GENERIC = 2001 // session报错 ERR_SRM_CLIENT_GENERIC = 2002 // SRM client 报错 /** * 可以忽略的错误 */ ERR_USER_NOT_FOUND = 3000 // 发送消息时, 未找到接收者 ERR_INVALID_QUERY_PARAM = 3001 // 查询用户状态参数不正确 ERR_RECEIVER_TYPE = 3002 // 消息接受者类型不正确 ERR_REDIS_GENERIC = 3100 // 获取聊天消息发生错误 )
const (
CompressPoolCap = 500
)
const Default_ApplyJoinChatRoomRequest_NoUserlist bool = false
const Default_ApplyJoinChatRoomResponse_PullLost bool = true
const Default_GroupDownPacket_Sleep int32 = 0
const Default_LoginReq_AppId uint32 = 2000
const Default_LoginReq_HeartFeq uint32 = 300
const Default_SubscribeRequest_Sub bool = false
const Default_SubscribeResponse_Sub bool = false
Variables ¶
This section is empty.
Functions ¶
func CompressChatRoomNewMsg ¶
func CompressChatRoomNewMsg(msg *logic.ChatRoomMessage) ([]byte, error)
func CreateMsgNotify ¶
Types ¶
type Ack ¶
type Ack struct { Result *uint32 `protobuf:"varint,1,req,name=result" json:"result,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Ack) Descriptor ¶
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
type ApplyJoinChatRoomRequest ¶
type ApplyJoinChatRoomRequest struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` // [server internal usage] Room *ChatRoom `protobuf:"bytes,2,opt,name=room" json:"room,omitempty"` UseridType *int32 `protobuf:"varint,3,opt,name=userid_type" json:"userid_type,omitempty"` Userdata []byte `protobuf:"bytes,4,opt,name=userdata" json:"userdata,omitempty"` NoUserlist *bool `protobuf:"varint,5,opt,name=no_userlist,def=0" json:"no_userlist,omitempty"` XXX_unrecognized []byte `json:"-"` }
Request: user -> server
roomid: room id; room: which is used between chatroom server and db
func (*ApplyJoinChatRoomRequest) Descriptor ¶
func (*ApplyJoinChatRoomRequest) Descriptor() ([]byte, []int)
func (*ApplyJoinChatRoomRequest) GetNoUserlist ¶
func (m *ApplyJoinChatRoomRequest) GetNoUserlist() bool
func (*ApplyJoinChatRoomRequest) GetRoom ¶
func (m *ApplyJoinChatRoomRequest) GetRoom() *ChatRoom
func (*ApplyJoinChatRoomRequest) GetRoomid ¶
func (m *ApplyJoinChatRoomRequest) GetRoomid() []byte
func (*ApplyJoinChatRoomRequest) GetUserdata ¶
func (m *ApplyJoinChatRoomRequest) GetUserdata() []byte
func (*ApplyJoinChatRoomRequest) GetUseridType ¶
func (m *ApplyJoinChatRoomRequest) GetUseridType() int32
func (*ApplyJoinChatRoomRequest) ProtoMessage ¶
func (*ApplyJoinChatRoomRequest) ProtoMessage()
func (*ApplyJoinChatRoomRequest) Reset ¶
func (m *ApplyJoinChatRoomRequest) Reset()
func (*ApplyJoinChatRoomRequest) String ¶
func (m *ApplyJoinChatRoomRequest) String() string
type ApplyJoinChatRoomResponse ¶
type ApplyJoinChatRoomResponse struct { Room *ChatRoom `protobuf:"bytes,1,opt,name=room" json:"room,omitempty"` PullLost *bool `protobuf:"varint,2,opt,name=pull_lost,def=1" json:"pull_lost,omitempty"` XXX_unrecognized []byte `json:"-"` }
Response room: if successful, server return whole room info pull_lost: indicates whether pull important lost message in chatroom, default is true
func (*ApplyJoinChatRoomResponse) Descriptor ¶
func (*ApplyJoinChatRoomResponse) Descriptor() ([]byte, []int)
func (*ApplyJoinChatRoomResponse) GetPullLost ¶
func (m *ApplyJoinChatRoomResponse) GetPullLost() bool
func (*ApplyJoinChatRoomResponse) GetRoom ¶
func (m *ApplyJoinChatRoomResponse) GetRoom() *ChatRoom
func (*ApplyJoinChatRoomResponse) ProtoMessage ¶
func (*ApplyJoinChatRoomResponse) ProtoMessage()
func (*ApplyJoinChatRoomResponse) Reset ¶
func (m *ApplyJoinChatRoomResponse) Reset()
func (*ApplyJoinChatRoomResponse) String ¶
func (m *ApplyJoinChatRoomResponse) String() string
type CRPair ¶
type CRPair struct { Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` XXX_unrecognized []byte `json:"-"` }
key-value message
func (*CRPair) Descriptor ¶
func (*CRPair) ProtoMessage ¶
func (*CRPair) ProtoMessage()
type CRUser ¶
type CRUser struct { Userid []byte `protobuf:"bytes,1,opt,name=userid" json:"userid,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // reserve fields Publicsetting []*CRPair `protobuf:"bytes,3,rep,name=publicsetting" json:"publicsetting,omitempty"` Privatesetting []*CRPair `protobuf:"bytes,4,rep,name=privatesetting" json:"privatesetting,omitempty"` Status *int32 `protobuf:"varint,5,opt,name=status" json:"status,omitempty"` Userdata []byte `protobuf:"bytes,6,opt,name=userdata" json:"userdata,omitempty"` XXX_unrecognized []byte `json:"-"` }
chat room user info message userid: user unique id, in our system, it's jid. qid: qihoo account id, it's unique in qihoo system. client should fill this field. name: user nick name, each message, user can set his/her nick name.
for this milestone, the following three fields are reserved for future: publicsetting: user can put his property in this field, and these properties are visuable for other members
isregister => 1--360 registry user, 0--no 360 registry user
privatesetting: user can put his property in this field, and these properties are not visuable for other members
area => location area msgproc => msgrouter process name
status: indicate one user's status.
func (*CRUser) Descriptor ¶
func (*CRUser) GetPrivatesetting ¶
func (*CRUser) GetPublicsetting ¶
func (*CRUser) GetUserdata ¶
func (*CRUser) ProtoMessage ¶
func (*CRUser) ProtoMessage()
type ChatReq ¶
type ChatReq struct { Body []byte `protobuf:"bytes,1,req,name=body" json:"body,omitempty"` BodyId *uint32 `protobuf:"varint,2,opt,name=body_id" json:"body_id,omitempty"` // // more_flag: 0:end 1:continue MoreFlag *uint32 `protobuf:"varint,3,opt,name=more_flag" json:"more_flag,omitempty"` // // body_type: 0:text 1:audio 2:pic_url, 3:audio_and_pic BodyType *uint32 `protobuf:"varint,4,req,name=body_type" json:"body_type,omitempty"` Store *bool `protobuf:"varint,5,opt,name=store" json:"store,omitempty"` MParameter []byte `protobuf:"bytes,6,opt,name=m_parameter" json:"m_parameter,omitempty"` ServiceId *uint32 `protobuf:"varint,7,opt,name=service_id" json:"service_id,omitempty"` SParameter []byte `protobuf:"bytes,8,opt,name=s_parameter" json:"s_parameter,omitempty"` // 9 and 10 wasted // optional string conv_id = 9; // conversation id, patched in every message // optional bool is_new_conv = 10 [default = false]; // whether this is the first message of a new conversation ExpireTime *uint32 `protobuf:"varint,12,opt,name=expire_time" json:"expire_time,omitempty"` XXX_unrecognized []byte `json:"-"` }
crypt txt, key is session_key
func (*ChatReq) Descriptor ¶
func (*ChatReq) GetBodyType ¶
func (*ChatReq) GetExpireTime ¶
func (*ChatReq) GetMParameter ¶
func (*ChatReq) GetMoreFlag ¶
func (*ChatReq) GetSParameter ¶
func (*ChatReq) GetServiceId ¶
func (*ChatReq) ProtoMessage ¶
func (*ChatReq) ProtoMessage()
type ChatResp ¶
type ChatResp struct { Result *uint32 `protobuf:"varint,1,req,name=result" json:"result,omitempty"` BodyId *uint32 `protobuf:"varint,2,opt,name=body_id" json:"body_id,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ChatResp) Descriptor ¶
func (*ChatResp) ProtoMessage ¶
func (*ChatResp) ProtoMessage()
type ChatRoom ¶
type ChatRoom struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` Creater *CRUser `protobuf:"bytes,2,opt,name=creater" json:"creater,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Version *uint64 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"` Maxmsgid *uint64 `protobuf:"varint,5,opt,name=maxmsgid" json:"maxmsgid,omitempty"` Memcountlimit *uint64 `protobuf:"varint,6,opt,name=memcountlimit" json:"memcountlimit,omitempty"` Roomtype *string `protobuf:"bytes,7,opt,name=roomtype" json:"roomtype,omitempty"` Properties []*CRPair `protobuf:"bytes,8,rep,name=properties" json:"properties,omitempty"` Members []*CRUser `protobuf:"bytes,9,rep,name=members" json:"members,omitempty"` Blacklist [][]byte `protobuf:"bytes,10,rep,name=blacklist" json:"blacklist,omitempty"` Gameid *string `protobuf:"bytes,11,opt,name=gameid" json:"gameid,omitempty"` Tempmembers []*CRUser `protobuf:"bytes,12,rep,name=tempmembers" json:"tempmembers,omitempty"` Partnerdata []byte `protobuf:"bytes,13,opt,name=partnerdata" json:"partnerdata,omitempty"` XXX_unrecognized []byte `json:"-"` }
chat room message roomid: identify a room creater: who create this room name: room name version: room version maxmsgid: max msg id in this room memcountlimit: upper limit of member count roomtype: default is 'game' members: all room members include creater properties: it's for future extend, wen can save icon, signature,...
regmemcount => int register member count memcount => int all member count
blacklist: jid list which can't join this chatroom
func (*ChatRoom) Descriptor ¶
func (*ChatRoom) GetBlacklist ¶
func (*ChatRoom) GetCreater ¶
func (*ChatRoom) GetMaxmsgid ¶
func (*ChatRoom) GetMembers ¶
func (*ChatRoom) GetMemcountlimit ¶
func (*ChatRoom) GetPartnerdata ¶
func (*ChatRoom) GetProperties ¶
func (*ChatRoom) GetRoomtype ¶
func (*ChatRoom) GetTempmembers ¶
func (*ChatRoom) GetVersion ¶
func (*ChatRoom) ProtoMessage ¶
func (*ChatRoom) ProtoMessage()
type ChatRoomDownToUser ¶
type ChatRoomDownToUser struct { Result *int32 `protobuf:"varint,1,req,name=result" json:"result,omitempty"` Payloadtype *uint32 `protobuf:"varint,2,req,name=payloadtype" json:"payloadtype,omitempty"` Createchatroomresp *CreateChatRoomResponse `protobuf:"bytes,3,opt,name=createchatroomresp" json:"createchatroomresp,omitempty"` Getchatroominforesp *GetChatRoomDetailResponse `protobuf:"bytes,4,opt,name=getchatroominforesp" json:"getchatroominforesp,omitempty"` Applyjoinchatroomresp *ApplyJoinChatRoomResponse `protobuf:"bytes,5,opt,name=applyjoinchatroomresp" json:"applyjoinchatroomresp,omitempty"` Quitchatroomresp *QuitChatRoomResponse `protobuf:"bytes,6,opt,name=quitchatroomresp" json:"quitchatroomresp,omitempty"` Updatechatroomresp *UpdateChatRoomResponse `protobuf:"bytes,7,opt,name=updatechatroomresp" json:"updatechatroomresp,omitempty"` Kickmemberresp *KickChatRoomMemberResponse `protobuf:"bytes,8,opt,name=kickmemberresp" json:"kickmemberresp,omitempty"` Querychatroomidresp *QueryChatRoomIDResponse `protobuf:"bytes,9,opt,name=querychatroomidresp" json:"querychatroomidresp,omitempty"` Updategameidresp *UpdateRoomIDResponse `protobuf:"bytes,10,opt,name=updategameidresp" json:"updategameidresp,omitempty"` Queryallgameroomresp *QueryAllGameRoomResponse `protobuf:"bytes,11,opt,name=queryallgameroomresp" json:"queryallgameroomresp,omitempty"` Chatroommessageresp *ChatRoomMessageResponse `protobuf:"bytes,12,opt,name=chatroommessageresp" json:"chatroommessageresp,omitempty"` Newmsgnotify *ChatRoomNewMsg `protobuf:"bytes,13,opt,name=newmsgnotify" json:"newmsgnotify,omitempty"` Errormsgnotify *ChatRoomErrorMsg `protobuf:"bytes,14,opt,name=errormsgnotify" json:"errormsgnotify,omitempty"` Createrooms *CreateMultiChatRoomResponse `protobuf:"bytes,15,opt,name=createrooms" json:"createrooms,omitempty"` Memberjoinnotify *MemberJoinChatRoomNotify `protobuf:"bytes,16,opt,name=memberjoinnotify" json:"memberjoinnotify,omitempty"` Memberquitnotify *MemberQuitChatRoomNotify `protobuf:"bytes,17,opt,name=memberquitnotify" json:"memberquitnotify,omitempty"` Subresp *SubscribeResponse `protobuf:"bytes,18,opt,name=subresp" json:"subresp,omitempty"` Reason []byte `protobuf:"bytes,100,opt,name=reason" json:"reason,omitempty"` Multinotify []*ChatRoomMNotify `protobuf:"bytes,200,rep,name=multinotify" json:"multinotify,omitempty"` XXX_unrecognized []byte `json:"-"` }
* payloadtype options: 100 -- createchatroomresp ; 101 -- getchatroominforesp ; 102 -- applyjoinchatroomresp; 103 -- quitchatroomresp; 104 -- updatechatroomresp; 105 -- kickmemberresp; 106 -- querychatroomidresp; 107 -- updategameidresp; 108 -- queryallgameroomresp; 300 -- chatroommessageresp; 1000 -- newmsgnotify 1001 -- memberjoinnotify 1002 -- memberquitnotify 1003 -- multinotify 1100 -- errormsgnotify [result] 0 -- successful
5000 exist in [GetChatRoomDetailRequest,ApplyJoinChatRoomRequest,QuitChatRoomRequest,UpdateChatRoomRequest,KickChatRoomMemberRequest,ChatRoomMessageRequest] 50000 -- peration failed, chat room server error. 5001 exist in [All Request] 50001 -- protocol error, not support payload type. 5002 exist in [GetChatRoomDetailRequest,ApplyJoinChatRoomRequest,QuitChatRoomRequest,UpdateChatRoomRequest,KickChatRoomMemberRequest,ChatRoomMessageRequest] 50002 -- operation failed, because room id does not exist 5003 exist in [GetChatRoomDetailRequest,ApplyJoinChatRoomRequest,QuitChatRoomRequest,UpdateChatRoomRequest,KickChatRoomMemberRequest,ChatRoomMessageRequest] 50003 -- operation failed, bcause room id is not same between inner and outer.
10001 -- create chat room failed, because dba return error 10002 -- create chat room failed, because has no authority 10003 -- create chat room failed, because no game id 10004 -- create chat room failed, because member count is over upper limit
10101 -- get chat room info failed, because user does not join this chat room
10201 -- join chat room failed, because room id does not exist 10202 -- join chat room failed, because member count reach upper limit 10203 -- join chat room failed, because dba return error 10204 -- join chat room failed, because user is in blacklist
10301 -- quit chat room failed, because user is not chat room member 10302 -- quit chat room failed, because dba return error
10401 -- update chat room failed, because user has no authority 10402 -- update chat room failed, because dba return error
10501 -- kick member failed, because user has no authority 10502 -- kick member failed, because user is not in chatroom 10503 -- kick member failed, because dba return error
10601 -- query room id failed, because dba return error
10701 -- update game and room relationship failed, because user has no authority 10702 -- update game and room relationship failed, because not set game id 10703 -- update game and room relationship failed, because dba return error
10801 -- query all game room mapping failed, because user has no authority 10802 -- query all game room mapping failed, because dba return error
30001 -- send message failed, because user is not chat room member 30002 -- send message failed, because dba return error
func (*ChatRoomDownToUser) Descriptor ¶
func (*ChatRoomDownToUser) Descriptor() ([]byte, []int)
func (*ChatRoomDownToUser) GetApplyjoinchatroomresp ¶
func (m *ChatRoomDownToUser) GetApplyjoinchatroomresp() *ApplyJoinChatRoomResponse
func (*ChatRoomDownToUser) GetChatroommessageresp ¶
func (m *ChatRoomDownToUser) GetChatroommessageresp() *ChatRoomMessageResponse
func (*ChatRoomDownToUser) GetCreatechatroomresp ¶
func (m *ChatRoomDownToUser) GetCreatechatroomresp() *CreateChatRoomResponse
func (*ChatRoomDownToUser) GetCreaterooms ¶
func (m *ChatRoomDownToUser) GetCreaterooms() *CreateMultiChatRoomResponse
func (*ChatRoomDownToUser) GetErrormsgnotify ¶
func (m *ChatRoomDownToUser) GetErrormsgnotify() *ChatRoomErrorMsg
func (*ChatRoomDownToUser) GetGetchatroominforesp ¶
func (m *ChatRoomDownToUser) GetGetchatroominforesp() *GetChatRoomDetailResponse
func (*ChatRoomDownToUser) GetKickmemberresp ¶
func (m *ChatRoomDownToUser) GetKickmemberresp() *KickChatRoomMemberResponse
func (*ChatRoomDownToUser) GetMemberjoinnotify ¶
func (m *ChatRoomDownToUser) GetMemberjoinnotify() *MemberJoinChatRoomNotify
func (*ChatRoomDownToUser) GetMemberquitnotify ¶
func (m *ChatRoomDownToUser) GetMemberquitnotify() *MemberQuitChatRoomNotify
func (*ChatRoomDownToUser) GetMultinotify ¶
func (m *ChatRoomDownToUser) GetMultinotify() []*ChatRoomMNotify
func (*ChatRoomDownToUser) GetNewmsgnotify ¶
func (m *ChatRoomDownToUser) GetNewmsgnotify() *ChatRoomNewMsg
func (*ChatRoomDownToUser) GetPayloadtype ¶
func (m *ChatRoomDownToUser) GetPayloadtype() uint32
func (*ChatRoomDownToUser) GetQueryallgameroomresp ¶
func (m *ChatRoomDownToUser) GetQueryallgameroomresp() *QueryAllGameRoomResponse
func (*ChatRoomDownToUser) GetQuerychatroomidresp ¶
func (m *ChatRoomDownToUser) GetQuerychatroomidresp() *QueryChatRoomIDResponse
func (*ChatRoomDownToUser) GetQuitchatroomresp ¶
func (m *ChatRoomDownToUser) GetQuitchatroomresp() *QuitChatRoomResponse
func (*ChatRoomDownToUser) GetReason ¶
func (m *ChatRoomDownToUser) GetReason() []byte
func (*ChatRoomDownToUser) GetResult ¶
func (m *ChatRoomDownToUser) GetResult() int32
func (*ChatRoomDownToUser) GetSubresp ¶
func (m *ChatRoomDownToUser) GetSubresp() *SubscribeResponse
func (*ChatRoomDownToUser) GetUpdatechatroomresp ¶
func (m *ChatRoomDownToUser) GetUpdatechatroomresp() *UpdateChatRoomResponse
func (*ChatRoomDownToUser) GetUpdategameidresp ¶
func (m *ChatRoomDownToUser) GetUpdategameidresp() *UpdateRoomIDResponse
func (*ChatRoomDownToUser) ProtoMessage ¶
func (*ChatRoomDownToUser) ProtoMessage()
func (*ChatRoomDownToUser) Reset ¶
func (m *ChatRoomDownToUser) Reset()
func (*ChatRoomDownToUser) String ¶
func (m *ChatRoomDownToUser) String() string
type ChatRoomErrorMsg ¶
type ChatRoomErrorMsg struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` Clientsn *uint64 `protobuf:"varint,2,req,name=clientsn" json:"clientsn,omitempty"` Errorcode *int32 `protobuf:"varint,3,opt,name=errorcode" json:"errorcode,omitempty"` XXX_unrecognized []byte `json:"-"` }
this message is used to notify user which msg is not handled errorcode option: 110101 -- text content contains illegal word which is forbidden by government; 110102 -- text content contains dangerous uri; 110201 -- picture content contains illegal word which is forbidden by government; 110301 -- voice content contains illegal word which is forbidden by government;
func (*ChatRoomErrorMsg) Descriptor ¶
func (*ChatRoomErrorMsg) Descriptor() ([]byte, []int)
func (*ChatRoomErrorMsg) GetClientsn ¶
func (m *ChatRoomErrorMsg) GetClientsn() uint64
func (*ChatRoomErrorMsg) GetErrorcode ¶
func (m *ChatRoomErrorMsg) GetErrorcode() int32
func (*ChatRoomErrorMsg) GetRoomid ¶
func (m *ChatRoomErrorMsg) GetRoomid() []byte
func (*ChatRoomErrorMsg) ProtoMessage ¶
func (*ChatRoomErrorMsg) ProtoMessage()
func (*ChatRoomErrorMsg) Reset ¶
func (m *ChatRoomErrorMsg) Reset()
func (*ChatRoomErrorMsg) String ¶
func (m *ChatRoomErrorMsg) String() string
type ChatRoomMNotify ¶
type ChatRoomMNotify struct { Type *int32 `protobuf:"varint,1,req,name=type" json:"type,omitempty"` Data []byte `protobuf:"bytes,2,req,name=data" json:"data,omitempty"` Regmemcount *int32 `protobuf:"varint,3,opt,name=regmemcount" json:"regmemcount,omitempty"` Memcount *int32 `protobuf:"varint,4,opt,name=memcount" json:"memcount,omitempty"` XXX_unrecognized []byte `json:"-"` }
complext notify which is combined three notify(newmsg, joinnotify, quitnotify)
func (*ChatRoomMNotify) Descriptor ¶
func (*ChatRoomMNotify) Descriptor() ([]byte, []int)
func (*ChatRoomMNotify) GetData ¶
func (m *ChatRoomMNotify) GetData() []byte
func (*ChatRoomMNotify) GetMemcount ¶
func (m *ChatRoomMNotify) GetMemcount() int32
func (*ChatRoomMNotify) GetRegmemcount ¶
func (m *ChatRoomMNotify) GetRegmemcount() int32
func (*ChatRoomMNotify) GetType ¶
func (m *ChatRoomMNotify) GetType() int32
func (*ChatRoomMNotify) ProtoMessage ¶
func (*ChatRoomMNotify) ProtoMessage()
func (*ChatRoomMNotify) Reset ¶
func (m *ChatRoomMNotify) Reset()
func (*ChatRoomMNotify) String ¶
func (m *ChatRoomMNotify) String() string
type ChatRoomMessageRequest ¶
type ChatRoomMessageRequest struct { Sender *CRUser `protobuf:"bytes,1,opt,name=sender" json:"sender,omitempty"` Roomid []byte `protobuf:"bytes,2,req,name=roomid" json:"roomid,omitempty"` Msgtype *int32 `protobuf:"varint,3,req,name=msgtype" json:"msgtype,omitempty"` Msgcontent []byte `protobuf:"bytes,4,opt,name=msgcontent" json:"msgcontent,omitempty"` Clientparameter []byte `protobuf:"bytes,5,opt,name=clientparameter" json:"clientparameter,omitempty"` Clientcache []byte `protobuf:"bytes,6,opt,name=clientcache" json:"clientcache,omitempty"` // ------notify list-------/ Createnotify *CreateChatRoomNotify `protobuf:"bytes,7,opt,name=createnotify" json:"createnotify,omitempty"` Joinnotify *MemberJoinChatRoomNotify `protobuf:"bytes,8,opt,name=joinnotify" json:"joinnotify,omitempty"` Quitnotify *MemberQuitChatRoomNotify `protobuf:"bytes,9,opt,name=quitnotify" json:"quitnotify,omitempty"` Kicknotify *KickMemberNotify `protobuf:"bytes,10,opt,name=kicknotify" json:"kicknotify,omitempty"` Updatenotify *UpdateChatRoomNotify `protobuf:"bytes,11,opt,name=updatenotify" json:"updatenotify,omitempty"` Propertylist []*CRPair `protobuf:"bytes,12,rep,name=propertylist" json:"propertylist,omitempty"` XXX_unrecognized []byte `json:"-"` }
this message only for group server to dba server, and client <-> dba client check msgtype, if it's notify message, client parse as ServerNotify msgtype option: 200 -- CreateChatRoomNotify valid; 201 -- MemberJoinChatRoomNotify valid; 202 -- MemberQuitChatRoomNotify valid; 203 -- KickMemberNotify valid; 204 -- UpdateChatRoomNotify valid; 0 -- msgcontent valid(text); 1 -- msgcontent valid(voice) 2 -- msgcontent valid(picture)
func (*ChatRoomMessageRequest) Descriptor ¶
func (*ChatRoomMessageRequest) Descriptor() ([]byte, []int)
func (*ChatRoomMessageRequest) GetClientcache ¶
func (m *ChatRoomMessageRequest) GetClientcache() []byte
func (*ChatRoomMessageRequest) GetClientparameter ¶
func (m *ChatRoomMessageRequest) GetClientparameter() []byte
func (*ChatRoomMessageRequest) GetCreatenotify ¶
func (m *ChatRoomMessageRequest) GetCreatenotify() *CreateChatRoomNotify
func (*ChatRoomMessageRequest) GetJoinnotify ¶
func (m *ChatRoomMessageRequest) GetJoinnotify() *MemberJoinChatRoomNotify
func (*ChatRoomMessageRequest) GetKicknotify ¶
func (m *ChatRoomMessageRequest) GetKicknotify() *KickMemberNotify
func (*ChatRoomMessageRequest) GetMsgcontent ¶
func (m *ChatRoomMessageRequest) GetMsgcontent() []byte
func (*ChatRoomMessageRequest) GetMsgtype ¶
func (m *ChatRoomMessageRequest) GetMsgtype() int32
func (*ChatRoomMessageRequest) GetPropertylist ¶
func (m *ChatRoomMessageRequest) GetPropertylist() []*CRPair
func (*ChatRoomMessageRequest) GetQuitnotify ¶
func (m *ChatRoomMessageRequest) GetQuitnotify() *MemberQuitChatRoomNotify
func (*ChatRoomMessageRequest) GetRoomid ¶
func (m *ChatRoomMessageRequest) GetRoomid() []byte
func (*ChatRoomMessageRequest) GetSender ¶
func (m *ChatRoomMessageRequest) GetSender() *CRUser
func (*ChatRoomMessageRequest) GetUpdatenotify ¶
func (m *ChatRoomMessageRequest) GetUpdatenotify() *UpdateChatRoomNotify
func (*ChatRoomMessageRequest) ProtoMessage ¶
func (*ChatRoomMessageRequest) ProtoMessage()
func (*ChatRoomMessageRequest) Reset ¶
func (m *ChatRoomMessageRequest) Reset()
func (*ChatRoomMessageRequest) String ¶
func (m *ChatRoomMessageRequest) String() string
type ChatRoomMessageResponse ¶
type ChatRoomMessageResponse struct { Msgid *uint64 `protobuf:"varint,1,opt,name=msgid" json:"msgid,omitempty"` XXX_unrecognized []byte `json:"-"` }
it's just return from dba to group server, never return to client.
func (*ChatRoomMessageResponse) Descriptor ¶
func (*ChatRoomMessageResponse) Descriptor() ([]byte, []int)
func (*ChatRoomMessageResponse) GetMsgid ¶
func (m *ChatRoomMessageResponse) GetMsgid() uint64
func (*ChatRoomMessageResponse) ProtoMessage ¶
func (*ChatRoomMessageResponse) ProtoMessage()
func (*ChatRoomMessageResponse) Reset ¶
func (m *ChatRoomMessageResponse) Reset()
func (*ChatRoomMessageResponse) String ¶
func (m *ChatRoomMessageResponse) String() string
type ChatRoomNewMsg ¶
type ChatRoomNewMsg struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` Sender *CRUser `protobuf:"bytes,2,opt,name=sender" json:"sender,omitempty"` Msgtype *int32 `protobuf:"varint,3,opt,name=msgtype" json:"msgtype,omitempty"` Msgcontent []byte `protobuf:"bytes,4,opt,name=msgcontent" json:"msgcontent,omitempty"` Regmemcount *int32 `protobuf:"varint,5,opt,name=regmemcount" json:"regmemcount,omitempty"` Memcount *int32 `protobuf:"varint,6,opt,name=memcount" json:"memcount,omitempty"` Msgid *uint32 `protobuf:"varint,7,opt,name=msgid" json:"msgid,omitempty"` Maxid *uint32 `protobuf:"varint,8,opt,name=maxid" json:"maxid,omitempty"` Timestamp *uint64 `protobuf:"varint,9,opt,name=timestamp" json:"timestamp,omitempty"` XXX_unrecognized []byte `json:"-"` }
this message is from chat room server to client, dba ignore it
func (*ChatRoomNewMsg) Descriptor ¶
func (*ChatRoomNewMsg) Descriptor() ([]byte, []int)
func (*ChatRoomNewMsg) GetMaxid ¶
func (m *ChatRoomNewMsg) GetMaxid() uint32
func (*ChatRoomNewMsg) GetMemcount ¶
func (m *ChatRoomNewMsg) GetMemcount() int32
func (*ChatRoomNewMsg) GetMsgcontent ¶
func (m *ChatRoomNewMsg) GetMsgcontent() []byte
func (*ChatRoomNewMsg) GetMsgid ¶
func (m *ChatRoomNewMsg) GetMsgid() uint32
func (*ChatRoomNewMsg) GetMsgtype ¶
func (m *ChatRoomNewMsg) GetMsgtype() int32
func (*ChatRoomNewMsg) GetRegmemcount ¶
func (m *ChatRoomNewMsg) GetRegmemcount() int32
func (*ChatRoomNewMsg) GetRoomid ¶
func (m *ChatRoomNewMsg) GetRoomid() []byte
func (*ChatRoomNewMsg) GetSender ¶
func (m *ChatRoomNewMsg) GetSender() *CRUser
func (*ChatRoomNewMsg) GetTimestamp ¶
func (m *ChatRoomNewMsg) GetTimestamp() uint64
func (*ChatRoomNewMsg) ProtoMessage ¶
func (*ChatRoomNewMsg) ProtoMessage()
func (*ChatRoomNewMsg) Reset ¶
func (m *ChatRoomNewMsg) Reset()
func (*ChatRoomNewMsg) String ¶
func (m *ChatRoomNewMsg) String() string
type ChatRoomPacket ¶
type ChatRoomPacket struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` ToServerData *ChatRoomUpToServer `protobuf:"bytes,2,opt,name=to_server_data" json:"to_server_data,omitempty"` ToUserData *ChatRoomDownToUser `protobuf:"bytes,3,opt,name=to_user_data" json:"to_user_data,omitempty"` Uuid *string `protobuf:"bytes,4,opt,name=uuid" json:"uuid,omitempty"` ClientSn *uint64 `protobuf:"varint,5,opt,name=client_sn" json:"client_sn,omitempty"` Appid *uint32 `protobuf:"varint,6,opt,name=appid" json:"appid,omitempty"` XXX_unrecognized []byte `json:"-"` }
roomid is used to dispatch to correct vnode
roomid: for CreateChatRoomRequest, QueryChatRoomIDRequest, UpdateRoomIDRequest, QueryAllGameRoomRequest client
should fill by ramdon; for other command, it must be existing room id
uuid: it's identifier for server, for phone/client, it's not used; client_sn: it' identify a unique client message
func (*ChatRoomPacket) Descriptor ¶
func (*ChatRoomPacket) Descriptor() ([]byte, []int)
func (*ChatRoomPacket) GetAppid ¶
func (m *ChatRoomPacket) GetAppid() uint32
func (*ChatRoomPacket) GetClientSn ¶
func (m *ChatRoomPacket) GetClientSn() uint64
func (*ChatRoomPacket) GetRoomid ¶
func (m *ChatRoomPacket) GetRoomid() []byte
func (*ChatRoomPacket) GetToServerData ¶
func (m *ChatRoomPacket) GetToServerData() *ChatRoomUpToServer
func (*ChatRoomPacket) GetToUserData ¶
func (m *ChatRoomPacket) GetToUserData() *ChatRoomDownToUser
func (*ChatRoomPacket) GetUuid ¶
func (m *ChatRoomPacket) GetUuid() string
func (*ChatRoomPacket) ProtoMessage ¶
func (*ChatRoomPacket) ProtoMessage()
func (*ChatRoomPacket) Reset ¶
func (m *ChatRoomPacket) Reset()
func (*ChatRoomPacket) String ¶
func (m *ChatRoomPacket) String() string
type ChatRoomUpToServer ¶
type ChatRoomUpToServer struct { Payloadtype *uint32 `protobuf:"varint,1,req,name=payloadtype" json:"payloadtype,omitempty"` Createchatroomreq *CreateChatRoomRequest `protobuf:"bytes,2,opt,name=createchatroomreq" json:"createchatroomreq,omitempty"` Getchatroominforeq *GetChatRoomDetailRequest `protobuf:"bytes,3,opt,name=getchatroominforeq" json:"getchatroominforeq,omitempty"` Applyjoinchatroomreq *ApplyJoinChatRoomRequest `protobuf:"bytes,4,opt,name=applyjoinchatroomreq" json:"applyjoinchatroomreq,omitempty"` Quitchatroomreq *QuitChatRoomRequest `protobuf:"bytes,5,opt,name=quitchatroomreq" json:"quitchatroomreq,omitempty"` Updatechatroomreq *UpdateChatRoomRequest `protobuf:"bytes,6,opt,name=updatechatroomreq" json:"updatechatroomreq,omitempty"` Kickmemberreq *KickChatRoomMemberRequest `protobuf:"bytes,7,opt,name=kickmemberreq" json:"kickmemberreq,omitempty"` Querychatroomidreq *QueryChatRoomIDRequest `protobuf:"bytes,8,opt,name=querychatroomidreq" json:"querychatroomidreq,omitempty"` Updategameidreq *UpdateRoomIDRequest `protobuf:"bytes,9,opt,name=updategameidreq" json:"updategameidreq,omitempty"` Queryallgameroomreq *QueryAllGameRoomRequest `protobuf:"bytes,10,opt,name=queryallgameroomreq" json:"queryallgameroomreq,omitempty"` Chatroommessagereq *ChatRoomMessageRequest `protobuf:"bytes,11,opt,name=chatroommessagereq" json:"chatroommessagereq,omitempty"` Createrooms *CreateMultiChatRoomRequest `protobuf:"bytes,12,opt,name=createrooms" json:"createrooms,omitempty"` Syncroomtodba *SyncRoomToDBRequest `protobuf:"bytes,13,opt,name=syncroomtodba" json:"syncroomtodba,omitempty"` Subreq *SubscribeRequest `protobuf:"bytes,14,opt,name=subreq" json:"subreq,omitempty"` XXX_unrecognized []byte `json:"-"` }
* payloadtype options: 100 -- createchatroomreq ; 101 -- getchatroominforeq ; 102 -- applyjoinchatroomreq; 103 -- quitchatroomreq; 104 -- updatechatroomreq; 105 -- kickmemberreq; 106 -- querychatroomidreq; 107 -- updategameidreq; 108 -- queryallgameroomreq; 109 -- subscribe chatroom message req; 200 -- syncroomtodba 300 -- chatroommessagereq;
func (*ChatRoomUpToServer) Descriptor ¶
func (*ChatRoomUpToServer) Descriptor() ([]byte, []int)
func (*ChatRoomUpToServer) GetApplyjoinchatroomreq ¶
func (m *ChatRoomUpToServer) GetApplyjoinchatroomreq() *ApplyJoinChatRoomRequest
func (*ChatRoomUpToServer) GetChatroommessagereq ¶
func (m *ChatRoomUpToServer) GetChatroommessagereq() *ChatRoomMessageRequest
func (*ChatRoomUpToServer) GetCreatechatroomreq ¶
func (m *ChatRoomUpToServer) GetCreatechatroomreq() *CreateChatRoomRequest
func (*ChatRoomUpToServer) GetCreaterooms ¶
func (m *ChatRoomUpToServer) GetCreaterooms() *CreateMultiChatRoomRequest
func (*ChatRoomUpToServer) GetGetchatroominforeq ¶
func (m *ChatRoomUpToServer) GetGetchatroominforeq() *GetChatRoomDetailRequest
func (*ChatRoomUpToServer) GetKickmemberreq ¶
func (m *ChatRoomUpToServer) GetKickmemberreq() *KickChatRoomMemberRequest
func (*ChatRoomUpToServer) GetPayloadtype ¶
func (m *ChatRoomUpToServer) GetPayloadtype() uint32
func (*ChatRoomUpToServer) GetQueryallgameroomreq ¶
func (m *ChatRoomUpToServer) GetQueryallgameroomreq() *QueryAllGameRoomRequest
func (*ChatRoomUpToServer) GetQuerychatroomidreq ¶
func (m *ChatRoomUpToServer) GetQuerychatroomidreq() *QueryChatRoomIDRequest
func (*ChatRoomUpToServer) GetQuitchatroomreq ¶
func (m *ChatRoomUpToServer) GetQuitchatroomreq() *QuitChatRoomRequest
func (*ChatRoomUpToServer) GetSubreq ¶
func (m *ChatRoomUpToServer) GetSubreq() *SubscribeRequest
func (*ChatRoomUpToServer) GetSyncroomtodba ¶
func (m *ChatRoomUpToServer) GetSyncroomtodba() *SyncRoomToDBRequest
func (*ChatRoomUpToServer) GetUpdatechatroomreq ¶
func (m *ChatRoomUpToServer) GetUpdatechatroomreq() *UpdateChatRoomRequest
func (*ChatRoomUpToServer) GetUpdategameidreq ¶
func (m *ChatRoomUpToServer) GetUpdategameidreq() *UpdateRoomIDRequest
func (*ChatRoomUpToServer) ProtoMessage ¶
func (*ChatRoomUpToServer) ProtoMessage()
func (*ChatRoomUpToServer) Reset ¶
func (m *ChatRoomUpToServer) Reset()
func (*ChatRoomUpToServer) String ¶
func (m *ChatRoomUpToServer) String() string
type CreateChatRoomNotify ¶
type CreateChatRoomNotify struct { Room *ChatRoom `protobuf:"bytes,1,req,name=room" json:"room,omitempty"` XXX_unrecognized []byte `json:"-"` }
-----create chat room notify-----// send to all member including creator
func (*CreateChatRoomNotify) Descriptor ¶
func (*CreateChatRoomNotify) Descriptor() ([]byte, []int)
func (*CreateChatRoomNotify) GetRoom ¶
func (m *CreateChatRoomNotify) GetRoom() *ChatRoom
func (*CreateChatRoomNotify) ProtoMessage ¶
func (*CreateChatRoomNotify) ProtoMessage()
func (*CreateChatRoomNotify) Reset ¶
func (m *CreateChatRoomNotify) Reset()
func (*CreateChatRoomNotify) String ¶
func (m *CreateChatRoomNotify) String() string
type CreateChatRoomRequest ¶
type CreateChatRoomRequest struct { Gameid *string `protobuf:"bytes,1,opt,name=gameid" json:"gameid,omitempty"` Roomname *string `protobuf:"bytes,2,opt,name=roomname" json:"roomname,omitempty"` Memcountlimit *uint64 `protobuf:"varint,3,opt,name=memcountlimit" json:"memcountlimit,omitempty"` Roomtype *string `protobuf:"bytes,4,opt,name=roomtype" json:"roomtype,omitempty"` Members []*CRUser `protobuf:"bytes,5,rep,name=members" json:"members,omitempty"` Creater *CRUser `protobuf:"bytes,6,opt,name=creater" json:"creater,omitempty"` Properties []*CRPair `protobuf:"bytes,7,rep,name=properties" json:"properties,omitempty"` XXX_unrecognized []byte `json:"-"` }
Request: user -> server
creater: room's creater; roomname: room name gameid: sticked game id members: init room members
func (*CreateChatRoomRequest) Descriptor ¶
func (*CreateChatRoomRequest) Descriptor() ([]byte, []int)
func (*CreateChatRoomRequest) GetCreater ¶
func (m *CreateChatRoomRequest) GetCreater() *CRUser
func (*CreateChatRoomRequest) GetGameid ¶
func (m *CreateChatRoomRequest) GetGameid() string
func (*CreateChatRoomRequest) GetMembers ¶
func (m *CreateChatRoomRequest) GetMembers() []*CRUser
func (*CreateChatRoomRequest) GetMemcountlimit ¶
func (m *CreateChatRoomRequest) GetMemcountlimit() uint64
func (*CreateChatRoomRequest) GetProperties ¶
func (m *CreateChatRoomRequest) GetProperties() []*CRPair
func (*CreateChatRoomRequest) GetRoomname ¶
func (m *CreateChatRoomRequest) GetRoomname() string
func (*CreateChatRoomRequest) GetRoomtype ¶
func (m *CreateChatRoomRequest) GetRoomtype() string
func (*CreateChatRoomRequest) ProtoMessage ¶
func (*CreateChatRoomRequest) ProtoMessage()
func (*CreateChatRoomRequest) Reset ¶
func (m *CreateChatRoomRequest) Reset()
func (*CreateChatRoomRequest) String ¶
func (m *CreateChatRoomRequest) String() string
type CreateChatRoomResponse ¶
type CreateChatRoomResponse struct { Room *ChatRoom `protobuf:"bytes,1,opt,name=room" json:"room,omitempty"` XXX_unrecognized []byte `json:"-"` }
Response: room: if create successful, return whole room info
func (*CreateChatRoomResponse) Descriptor ¶
func (*CreateChatRoomResponse) Descriptor() ([]byte, []int)
func (*CreateChatRoomResponse) GetRoom ¶
func (m *CreateChatRoomResponse) GetRoom() *ChatRoom
func (*CreateChatRoomResponse) ProtoMessage ¶
func (*CreateChatRoomResponse) ProtoMessage()
func (*CreateChatRoomResponse) Reset ¶
func (m *CreateChatRoomResponse) Reset()
func (*CreateChatRoomResponse) String ¶
func (m *CreateChatRoomResponse) String() string
type CreateMultiChatRoomRequest ¶
type CreateMultiChatRoomRequest struct { Rooms []*CreateChatRoomRequest `protobuf:"bytes,1,rep,name=rooms" json:"rooms,omitempty"` Creater *CRUser `protobuf:"bytes,2,opt,name=creater" json:"creater,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*CreateMultiChatRoomRequest) Descriptor ¶
func (*CreateMultiChatRoomRequest) Descriptor() ([]byte, []int)
func (*CreateMultiChatRoomRequest) GetCreater ¶
func (m *CreateMultiChatRoomRequest) GetCreater() *CRUser
func (*CreateMultiChatRoomRequest) GetRooms ¶
func (m *CreateMultiChatRoomRequest) GetRooms() []*CreateChatRoomRequest
func (*CreateMultiChatRoomRequest) ProtoMessage ¶
func (*CreateMultiChatRoomRequest) ProtoMessage()
func (*CreateMultiChatRoomRequest) Reset ¶
func (m *CreateMultiChatRoomRequest) Reset()
func (*CreateMultiChatRoomRequest) String ¶
func (m *CreateMultiChatRoomRequest) String() string
type CreateMultiChatRoomResponse ¶
type CreateMultiChatRoomResponse struct { Rooms []*ChatRoom `protobuf:"bytes,1,rep,name=rooms" json:"rooms,omitempty"` Creater *CRUser `protobuf:"bytes,2,opt,name=creater" json:"creater,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*CreateMultiChatRoomResponse) Descriptor ¶
func (*CreateMultiChatRoomResponse) Descriptor() ([]byte, []int)
func (*CreateMultiChatRoomResponse) GetCreater ¶
func (m *CreateMultiChatRoomResponse) GetCreater() *CRUser
func (*CreateMultiChatRoomResponse) GetRooms ¶
func (m *CreateMultiChatRoomResponse) GetRooms() []*ChatRoom
func (*CreateMultiChatRoomResponse) ProtoMessage ¶
func (*CreateMultiChatRoomResponse) ProtoMessage()
func (*CreateMultiChatRoomResponse) Reset ¶
func (m *CreateMultiChatRoomResponse) Reset()
func (*CreateMultiChatRoomResponse) String ¶
func (m *CreateMultiChatRoomResponse) String() string
type Error ¶
type Error struct { Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` Description []byte `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Error) Descriptor ¶
func (*Error) GetDescription ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
type Ex1QueryUserStatusReq ¶
type Ex1QueryUserStatusReq struct { UserList []*ReqEQ1User `protobuf:"bytes,1,rep,name=user_list" json:"user_list,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Ex1QueryUserStatusReq) Descriptor ¶
func (*Ex1QueryUserStatusReq) Descriptor() ([]byte, []int)
func (*Ex1QueryUserStatusReq) GetUserList ¶
func (m *Ex1QueryUserStatusReq) GetUserList() []*ReqEQ1User
func (*Ex1QueryUserStatusReq) ProtoMessage ¶
func (*Ex1QueryUserStatusReq) ProtoMessage()
func (*Ex1QueryUserStatusReq) Reset ¶
func (m *Ex1QueryUserStatusReq) Reset()
func (*Ex1QueryUserStatusReq) String ¶
func (m *Ex1QueryUserStatusReq) String() string
type Ex1QueryUserStatusResp ¶
type Ex1QueryUserStatusResp struct { UserList []*RespEQ1User `protobuf:"bytes,1,rep,name=user_list" json:"user_list,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Ex1QueryUserStatusResp) Descriptor ¶
func (*Ex1QueryUserStatusResp) Descriptor() ([]byte, []int)
func (*Ex1QueryUserStatusResp) GetUserList ¶
func (m *Ex1QueryUserStatusResp) GetUserList() []*RespEQ1User
func (*Ex1QueryUserStatusResp) ProtoMessage ¶
func (*Ex1QueryUserStatusResp) ProtoMessage()
func (*Ex1QueryUserStatusResp) Reset ¶
func (m *Ex1QueryUserStatusResp) Reset()
func (*Ex1QueryUserStatusResp) String ¶
func (m *Ex1QueryUserStatusResp) String() string
type GetChatRoomDetailRequest ¶
type GetChatRoomDetailRequest struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` Index *int32 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"` Offset *int32 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"` XXX_unrecognized []byte `json:"-"` }
Request: user -> server roomid: roomid
func (*GetChatRoomDetailRequest) Descriptor ¶
func (*GetChatRoomDetailRequest) Descriptor() ([]byte, []int)
func (*GetChatRoomDetailRequest) GetIndex ¶
func (m *GetChatRoomDetailRequest) GetIndex() int32
func (*GetChatRoomDetailRequest) GetOffset ¶
func (m *GetChatRoomDetailRequest) GetOffset() int32
func (*GetChatRoomDetailRequest) GetRoomid ¶
func (m *GetChatRoomDetailRequest) GetRoomid() []byte
func (*GetChatRoomDetailRequest) ProtoMessage ¶
func (*GetChatRoomDetailRequest) ProtoMessage()
func (*GetChatRoomDetailRequest) Reset ¶
func (m *GetChatRoomDetailRequest) Reset()
func (*GetChatRoomDetailRequest) String ¶
func (m *GetChatRoomDetailRequest) String() string
type GetChatRoomDetailResponse ¶
type GetChatRoomDetailResponse struct { Room *ChatRoom `protobuf:"bytes,1,opt,name=room" json:"room,omitempty"` XXX_unrecognized []byte `json:"-"` }
Response room: now it contains one room whole info.
func (*GetChatRoomDetailResponse) Descriptor ¶
func (*GetChatRoomDetailResponse) Descriptor() ([]byte, []int)
func (*GetChatRoomDetailResponse) GetRoom ¶
func (m *GetChatRoomDetailResponse) GetRoom() *ChatRoom
func (*GetChatRoomDetailResponse) ProtoMessage ¶
func (*GetChatRoomDetailResponse) ProtoMessage()
func (*GetChatRoomDetailResponse) Reset ¶
func (m *GetChatRoomDetailResponse) Reset()
func (*GetChatRoomDetailResponse) String ¶
func (m *GetChatRoomDetailResponse) String() string
type GetInfoReq ¶
type GetInfoReq struct { InfoType *string `protobuf:"bytes,1,req,name=info_type" json:"info_type,omitempty"` GetInfoId *int64 `protobuf:"varint,2,req,name=get_info_id" json:"get_info_id,omitempty"` GetInfoOffset *int32 `protobuf:"varint,3,opt,name=get_info_offset" json:"get_info_offset,omitempty"` SParameter []byte `protobuf:"bytes,4,opt,name=s_parameter" json:"s_parameter,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GetInfoReq) Descriptor ¶
func (*GetInfoReq) Descriptor() ([]byte, []int)
func (*GetInfoReq) GetGetInfoId ¶
func (m *GetInfoReq) GetGetInfoId() int64
func (*GetInfoReq) GetGetInfoOffset ¶
func (m *GetInfoReq) GetGetInfoOffset() int32
func (*GetInfoReq) GetInfoType ¶
func (m *GetInfoReq) GetInfoType() string
func (*GetInfoReq) GetSParameter ¶
func (m *GetInfoReq) GetSParameter() []byte
func (*GetInfoReq) ProtoMessage ¶
func (*GetInfoReq) ProtoMessage()
func (*GetInfoReq) Reset ¶
func (m *GetInfoReq) Reset()
func (*GetInfoReq) String ¶
func (m *GetInfoReq) String() string
type GetInfoResp ¶
type GetInfoResp struct { InfoType *string `protobuf:"bytes,1,req,name=info_type" json:"info_type,omitempty"` Infos []*Info `protobuf:"bytes,2,rep,name=infos" json:"infos,omitempty"` LastInfoId *int64 `protobuf:"varint,3,opt,name=last_info_id" json:"last_info_id,omitempty"` SParameter []byte `protobuf:"bytes,4,opt,name=s_parameter" json:"s_parameter,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GetInfoResp) Descriptor ¶
func (*GetInfoResp) Descriptor() ([]byte, []int)
func (*GetInfoResp) GetInfoType ¶
func (m *GetInfoResp) GetInfoType() string
func (*GetInfoResp) GetInfos ¶
func (m *GetInfoResp) GetInfos() []*Info
func (*GetInfoResp) GetLastInfoId ¶
func (m *GetInfoResp) GetLastInfoId() int64
func (*GetInfoResp) GetSParameter ¶
func (m *GetInfoResp) GetSParameter() []byte
func (*GetInfoResp) ProtoMessage ¶
func (*GetInfoResp) ProtoMessage()
func (*GetInfoResp) Reset ¶
func (m *GetInfoResp) Reset()
func (*GetInfoResp) String ¶
func (m *GetInfoResp) String() string
type GetMultiInfosReq ¶
type GetMultiInfosReq struct { InfoType *string `protobuf:"bytes,1,req,name=info_type" json:"info_type,omitempty"` GetInfoIds []int64 `protobuf:"varint,2,rep,name=get_info_ids" json:"get_info_ids,omitempty"` SParameter []byte `protobuf:"bytes,3,opt,name=s_parameter" json:"s_parameter,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GetMultiInfosReq) Descriptor ¶
func (*GetMultiInfosReq) Descriptor() ([]byte, []int)
func (*GetMultiInfosReq) GetGetInfoIds ¶
func (m *GetMultiInfosReq) GetGetInfoIds() []int64
func (*GetMultiInfosReq) GetInfoType ¶
func (m *GetMultiInfosReq) GetInfoType() string
func (*GetMultiInfosReq) GetSParameter ¶
func (m *GetMultiInfosReq) GetSParameter() []byte
func (*GetMultiInfosReq) ProtoMessage ¶
func (*GetMultiInfosReq) ProtoMessage()
func (*GetMultiInfosReq) Reset ¶
func (m *GetMultiInfosReq) Reset()
func (*GetMultiInfosReq) String ¶
func (m *GetMultiInfosReq) String() string
type GetMultiInfosResp ¶
type GetMultiInfosResp struct { InfoType *string `protobuf:"bytes,1,req,name=info_type" json:"info_type,omitempty"` Infos []*Info `protobuf:"bytes,2,rep,name=infos" json:"infos,omitempty"` LastInfoId *int64 `protobuf:"varint,3,opt,name=last_info_id" json:"last_info_id,omitempty"` SParameter []byte `protobuf:"bytes,4,opt,name=s_parameter" json:"s_parameter,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GetMultiInfosResp) Descriptor ¶
func (*GetMultiInfosResp) Descriptor() ([]byte, []int)
func (*GetMultiInfosResp) GetInfoType ¶
func (m *GetMultiInfosResp) GetInfoType() string
func (*GetMultiInfosResp) GetInfos ¶
func (m *GetMultiInfosResp) GetInfos() []*Info
func (*GetMultiInfosResp) GetLastInfoId ¶
func (m *GetMultiInfosResp) GetLastInfoId() int64
func (*GetMultiInfosResp) GetSParameter ¶
func (m *GetMultiInfosResp) GetSParameter() []byte
func (*GetMultiInfosResp) ProtoMessage ¶
func (*GetMultiInfosResp) ProtoMessage()
func (*GetMultiInfosResp) Reset ¶
func (m *GetMultiInfosResp) Reset()
func (*GetMultiInfosResp) String ¶
func (m *GetMultiInfosResp) String() string
type GroupDownPacket ¶
type GroupDownPacket struct { Result *int32 `protobuf:"varint,1,req,name=result" json:"result,omitempty"` Payload *uint32 `protobuf:"varint,2,req,name=payload" json:"payload,omitempty"` Reason *string `protobuf:"bytes,3,opt,name=reason" json:"reason,omitempty"` Sleep *int32 `protobuf:"varint,4,opt,name=sleep,def=0" json:"sleep,omitempty"` Newmsgnotify []*GroupNotify `protobuf:"bytes,5,rep,name=newmsgnotify" json:"newmsgnotify,omitempty"` Syncresp []*GroupInfo `protobuf:"bytes,6,rep,name=syncresp" json:"syncresp,omitempty"` Getmsgresp []*GroupMessageResp `protobuf:"bytes,7,rep,name=getmsgresp" json:"getmsgresp,omitempty"` XXX_unrecognized []byte `json:"-"` }
* payloadtype options: 108 -- sync group response 109 -- getmsgresp; 200 -- nesmsgnotify [result] 0 -- successful
func (*GroupDownPacket) Descriptor ¶
func (*GroupDownPacket) Descriptor() ([]byte, []int)
func (*GroupDownPacket) GetGetmsgresp ¶
func (m *GroupDownPacket) GetGetmsgresp() []*GroupMessageResp
func (*GroupDownPacket) GetNewmsgnotify ¶
func (m *GroupDownPacket) GetNewmsgnotify() []*GroupNotify
func (*GroupDownPacket) GetPayload ¶
func (m *GroupDownPacket) GetPayload() uint32
func (*GroupDownPacket) GetReason ¶
func (m *GroupDownPacket) GetReason() string
func (*GroupDownPacket) GetResult ¶
func (m *GroupDownPacket) GetResult() int32
func (*GroupDownPacket) GetSleep ¶
func (m *GroupDownPacket) GetSleep() int32
func (*GroupDownPacket) GetSyncresp ¶
func (m *GroupDownPacket) GetSyncresp() []*GroupInfo
func (*GroupDownPacket) ProtoMessage ¶
func (*GroupDownPacket) ProtoMessage()
func (*GroupDownPacket) Reset ¶
func (m *GroupDownPacket) Reset()
func (*GroupDownPacket) String ¶
func (m *GroupDownPacket) String() string
type GroupInfo ¶
type GroupInfo struct { Groupid *string `protobuf:"bytes,1,req,name=groupid" json:"groupid,omitempty"` Maxid *uint64 `protobuf:"varint,2,opt,name=maxid" json:"maxid,omitempty"` Version *int64 `protobuf:"varint,3,opt,name=version" json:"version,omitempty"` Startid *uint64 `protobuf:"varint,4,opt,name=startid" json:"startid,omitempty"` XXX_unrecognized []byte `json:"-"` }
群信息
func (*GroupInfo) Descriptor ¶
func (*GroupInfo) GetGroupid ¶
func (*GroupInfo) GetStartid ¶
func (*GroupInfo) GetVersion ¶
func (*GroupInfo) ProtoMessage ¶
func (*GroupInfo) ProtoMessage()
type GroupMessage ¶
type GroupMessage struct { Msgid *uint64 `protobuf:"varint,1,req,name=msgid" json:"msgid,omitempty"` Content *string `protobuf:"bytes,2,req,name=content" json:"content,omitempty"` Sendtime *int64 `protobuf:"varint,3,opt,name=sendtime" json:"sendtime,omitempty"` Sender *string `protobuf:"bytes,4,opt,name=sender" json:"sender,omitempty"` XXX_unrecognized []byte `json:"-"` }
group message
func (*GroupMessage) Descriptor ¶
func (*GroupMessage) Descriptor() ([]byte, []int)
func (*GroupMessage) GetContent ¶
func (m *GroupMessage) GetContent() string
func (*GroupMessage) GetMsgid ¶
func (m *GroupMessage) GetMsgid() uint64
func (*GroupMessage) GetSender ¶
func (m *GroupMessage) GetSender() string
func (*GroupMessage) GetSendtime ¶
func (m *GroupMessage) GetSendtime() int64
func (*GroupMessage) ProtoMessage ¶
func (*GroupMessage) ProtoMessage()
func (*GroupMessage) Reset ¶
func (m *GroupMessage) Reset()
func (*GroupMessage) String ¶
func (m *GroupMessage) String() string
type GroupMessageReq ¶
type GroupMessageReq struct { Groupid *string `protobuf:"bytes,1,req,name=groupid" json:"groupid,omitempty"` Traceid *string `protobuf:"bytes,2,req,name=traceid" json:"traceid,omitempty"` Startid *uint64 `protobuf:"varint,3,opt,name=startid" json:"startid,omitempty"` Offset *int32 `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"` XXX_unrecognized []byte `json:"-"` }
get group message request
func (*GroupMessageReq) Descriptor ¶
func (*GroupMessageReq) Descriptor() ([]byte, []int)
func (*GroupMessageReq) GetGroupid ¶
func (m *GroupMessageReq) GetGroupid() string
func (*GroupMessageReq) GetOffset ¶
func (m *GroupMessageReq) GetOffset() int32
func (*GroupMessageReq) GetStartid ¶
func (m *GroupMessageReq) GetStartid() uint64
func (*GroupMessageReq) GetTraceid ¶
func (m *GroupMessageReq) GetTraceid() string
func (*GroupMessageReq) ProtoMessage ¶
func (*GroupMessageReq) ProtoMessage()
func (*GroupMessageReq) Reset ¶
func (m *GroupMessageReq) Reset()
func (*GroupMessageReq) String ¶
func (m *GroupMessageReq) String() string
type GroupMessageResp ¶
type GroupMessageResp struct { Groupid *string `protobuf:"bytes,1,req,name=groupid" json:"groupid,omitempty"` Traceid *string `protobuf:"bytes,2,req,name=traceid" json:"traceid,omitempty"` Msglist []*GroupMessage `protobuf:"bytes,3,rep,name=msglist" json:"msglist,omitempty"` Maxid *uint64 `protobuf:"varint,4,opt,name=maxid" json:"maxid,omitempty"` Version *int64 `protobuf:"varint,5,opt,name=version" json:"version,omitempty"` XXX_unrecognized []byte `json:"-"` }
get group message response
func (*GroupMessageResp) Descriptor ¶
func (*GroupMessageResp) Descriptor() ([]byte, []int)
func (*GroupMessageResp) GetGroupid ¶
func (m *GroupMessageResp) GetGroupid() string
func (*GroupMessageResp) GetMaxid ¶
func (m *GroupMessageResp) GetMaxid() uint64
func (*GroupMessageResp) GetMsglist ¶
func (m *GroupMessageResp) GetMsglist() []*GroupMessage
func (*GroupMessageResp) GetTraceid ¶
func (m *GroupMessageResp) GetTraceid() string
func (*GroupMessageResp) GetVersion ¶
func (m *GroupMessageResp) GetVersion() int64
func (*GroupMessageResp) ProtoMessage ¶
func (*GroupMessageResp) ProtoMessage()
func (*GroupMessageResp) Reset ¶
func (m *GroupMessageResp) Reset()
func (*GroupMessageResp) String ¶
func (m *GroupMessageResp) String() string
type GroupNotify ¶
type GroupNotify struct { Groupid *string `protobuf:"bytes,1,req,name=groupid" json:"groupid,omitempty"` Msgid *uint64 `protobuf:"varint,2,req,name=msgid" json:"msgid,omitempty"` Summary *string `protobuf:"bytes,3,opt,name=summary" json:"summary,omitempty"` XXX_unrecognized []byte `json:"-"` }
group notification
func (*GroupNotify) Descriptor ¶
func (*GroupNotify) Descriptor() ([]byte, []int)
func (*GroupNotify) GetGroupid ¶
func (m *GroupNotify) GetGroupid() string
func (*GroupNotify) GetMsgid ¶
func (m *GroupNotify) GetMsgid() uint64
func (*GroupNotify) GetSummary ¶
func (m *GroupNotify) GetSummary() string
func (*GroupNotify) ProtoMessage ¶
func (*GroupNotify) ProtoMessage()
func (*GroupNotify) Reset ¶
func (m *GroupNotify) Reset()
func (*GroupNotify) String ¶
func (m *GroupNotify) String() string
type GroupSyncReq ¶
type GroupSyncReq struct { Groupid *string `protobuf:"bytes,1,req,name=groupid" json:"groupid,omitempty"` XXX_unrecognized []byte `json:"-"` }
sync user groups request
func (*GroupSyncReq) Descriptor ¶
func (*GroupSyncReq) Descriptor() ([]byte, []int)
func (*GroupSyncReq) GetGroupid ¶
func (m *GroupSyncReq) GetGroupid() string
func (*GroupSyncReq) ProtoMessage ¶
func (*GroupSyncReq) ProtoMessage()
func (*GroupSyncReq) Reset ¶
func (m *GroupSyncReq) Reset()
func (*GroupSyncReq) String ¶
func (m *GroupSyncReq) String() string
type GroupUpPacket ¶
type GroupUpPacket struct { Payload *uint32 `protobuf:"varint,1,req,name=payload" json:"payload,omitempty"` Syncreq []*GroupSyncReq `protobuf:"bytes,6,rep,name=syncreq" json:"syncreq,omitempty"` Getmsgreq []*GroupMessageReq `protobuf:"bytes,7,rep,name=getmsgreq" json:"getmsgreq,omitempty"` XXX_unrecognized []byte `json:"-"` }
* payloadtype options: 108 -- sync group request 109 -- getmsgreq
func (*GroupUpPacket) Descriptor ¶
func (*GroupUpPacket) Descriptor() ([]byte, []int)
func (*GroupUpPacket) GetGetmsgreq ¶
func (m *GroupUpPacket) GetGetmsgreq() []*GroupMessageReq
func (*GroupUpPacket) GetPayload ¶
func (m *GroupUpPacket) GetPayload() uint32
func (*GroupUpPacket) GetSyncreq ¶
func (m *GroupUpPacket) GetSyncreq() []*GroupSyncReq
func (*GroupUpPacket) ProtoMessage ¶
func (*GroupUpPacket) ProtoMessage()
func (*GroupUpPacket) Reset ¶
func (m *GroupUpPacket) Reset()
func (*GroupUpPacket) String ¶
func (m *GroupUpPacket) String() string
type Info ¶
type Info struct { PropertyPairs []*Pair `protobuf:"bytes,1,rep,name=property_pairs" json:"property_pairs,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Info) Descriptor ¶
func (*Info) GetPropertyPairs ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
type InitLoginReq ¶
type InitLoginReq struct { ClientRam *string `protobuf:"bytes,1,req,name=client_ram" json:"client_ram,omitempty"` Sig *string `protobuf:"bytes,2,opt,name=sig" json:"sig,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*InitLoginReq) Descriptor ¶
func (*InitLoginReq) Descriptor() ([]byte, []int)
func (*InitLoginReq) GetClientRam ¶
func (m *InitLoginReq) GetClientRam() string
func (*InitLoginReq) GetSig ¶
func (m *InitLoginReq) GetSig() string
func (*InitLoginReq) ProtoMessage ¶
func (*InitLoginReq) ProtoMessage()
func (*InitLoginReq) Reset ¶
func (m *InitLoginReq) Reset()
func (*InitLoginReq) String ¶
func (m *InitLoginReq) String() string
type InitLoginResp ¶
type InitLoginResp struct { ClientRam *string `protobuf:"bytes,1,req,name=client_ram" json:"client_ram,omitempty"` ServerRam *string `protobuf:"bytes,2,req,name=server_ram" json:"server_ram,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*InitLoginResp) Descriptor ¶
func (*InitLoginResp) Descriptor() ([]byte, []int)
func (*InitLoginResp) GetClientRam ¶
func (m *InitLoginResp) GetClientRam() string
func (*InitLoginResp) GetServerRam ¶
func (m *InitLoginResp) GetServerRam() string
func (*InitLoginResp) ProtoMessage ¶
func (*InitLoginResp) ProtoMessage()
func (*InitLoginResp) Reset ¶
func (m *InitLoginResp) Reset()
func (*InitLoginResp) String ¶
func (m *InitLoginResp) String() string
type KickChatRoomMemberRequest ¶
type KickChatRoomMemberRequest struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` Members []*CRUser `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` Room *ChatRoom `protobuf:"bytes,3,opt,name=room" json:"room,omitempty"` XXX_unrecognized []byte `json:"-"` }
Request: user -> server user: init user, if client not fill, server will get from msgrouter group: contain groupid members: kick out members, each one should contain userid
func (*KickChatRoomMemberRequest) Descriptor ¶
func (*KickChatRoomMemberRequest) Descriptor() ([]byte, []int)
func (*KickChatRoomMemberRequest) GetMembers ¶
func (m *KickChatRoomMemberRequest) GetMembers() []*CRUser
func (*KickChatRoomMemberRequest) GetRoom ¶
func (m *KickChatRoomMemberRequest) GetRoom() *ChatRoom
func (*KickChatRoomMemberRequest) GetRoomid ¶
func (m *KickChatRoomMemberRequest) GetRoomid() []byte
func (*KickChatRoomMemberRequest) ProtoMessage ¶
func (*KickChatRoomMemberRequest) ProtoMessage()
func (*KickChatRoomMemberRequest) Reset ¶
func (m *KickChatRoomMemberRequest) Reset()
func (*KickChatRoomMemberRequest) String ¶
func (m *KickChatRoomMemberRequest) String() string
type KickChatRoomMemberResponse ¶
type KickChatRoomMemberResponse struct { Room *ChatRoom `protobuf:"bytes,1,opt,name=room" json:"room,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*KickChatRoomMemberResponse) Descriptor ¶
func (*KickChatRoomMemberResponse) Descriptor() ([]byte, []int)
func (*KickChatRoomMemberResponse) GetRoom ¶
func (m *KickChatRoomMemberResponse) GetRoom() *ChatRoom
func (*KickChatRoomMemberResponse) ProtoMessage ¶
func (*KickChatRoomMemberResponse) ProtoMessage()
func (*KickChatRoomMemberResponse) Reset ¶
func (m *KickChatRoomMemberResponse) Reset()
func (*KickChatRoomMemberResponse) String ¶
func (m *KickChatRoomMemberResponse) String() string
type KickMemberNotify ¶
type KickMemberNotify struct { Room *ChatRoom `protobuf:"bytes,1,req,name=room" json:"room,omitempty"` User *CRUser `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` XXX_unrecognized []byte `json:"-"` }
-----kick member notify-----// Notify: server -> user send to all member including kicked member
func (*KickMemberNotify) Descriptor ¶
func (*KickMemberNotify) Descriptor() ([]byte, []int)
func (*KickMemberNotify) GetRoom ¶
func (m *KickMemberNotify) GetRoom() *ChatRoom
func (*KickMemberNotify) GetUser ¶
func (m *KickMemberNotify) GetUser() *CRUser
func (*KickMemberNotify) ProtoMessage ¶
func (*KickMemberNotify) ProtoMessage()
func (*KickMemberNotify) Reset ¶
func (m *KickMemberNotify) Reset()
func (*KickMemberNotify) String ¶
func (m *KickMemberNotify) String() string
type LoginReq ¶
type LoginReq struct { MobileType *string `protobuf:"bytes,1,req,name=mobile_type" json:"mobile_type,omitempty"` // // net_type: 0:unkonwn 1:2g 2:3g 3:wifi 4:ethe NetType *uint32 `protobuf:"varint,2,req,name=net_type" json:"net_type,omitempty"` ServerRam *string `protobuf:"bytes,3,req,name=server_ram" json:"server_ram,omitempty"` SecretRam []byte `protobuf:"bytes,4,opt,name=secret_ram" json:"secret_ram,omitempty"` AppId *uint32 `protobuf:"varint,5,opt,name=app_id,def=2000" json:"app_id,omitempty"` HeartFeq *uint32 `protobuf:"varint,6,opt,name=heart_feq,def=300" json:"heart_feq,omitempty"` Deviceid *string `protobuf:"bytes,7,opt,name=deviceid,def=" json:"deviceid,omitempty"` Platform *string `protobuf:"bytes,8,opt,name=platform" json:"platform,omitempty"` VerfCode *string `protobuf:"bytes,9,opt,name=verf_code" json:"verf_code,omitempty"` NotEncrypt *bool `protobuf:"varint,10,opt,name=not_encrypt" json:"not_encrypt,omitempty"` XXX_unrecognized []byte `json:"-"` }
plain txt
func (*LoginReq) Descriptor ¶
func (*LoginReq) GetDeviceid ¶
func (*LoginReq) GetHeartFeq ¶
func (*LoginReq) GetMobileType ¶
func (*LoginReq) GetNetType ¶
func (*LoginReq) GetNotEncrypt ¶
func (*LoginReq) GetPlatform ¶
func (*LoginReq) GetSecretRam ¶
func (*LoginReq) GetServerRam ¶
func (*LoginReq) GetVerfCode ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
type LoginResp ¶
type LoginResp struct { Timestamp *uint32 `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"` SessionId *string `protobuf:"bytes,2,req,name=session_id" json:"session_id,omitempty"` SessionKey *string `protobuf:"bytes,3,req,name=session_key" json:"session_key,omitempty"` ClientLoginIp *string `protobuf:"bytes,4,opt,name=client_login_ip" json:"client_login_ip,omitempty"` Serverip *string `protobuf:"bytes,5,opt,name=serverip" json:"serverip,omitempty"` XXX_unrecognized []byte `json:"-"` }
crypt txt, key is md5(password)
func (*LoginResp) Descriptor ¶
func (*LoginResp) GetClientLoginIp ¶
func (*LoginResp) GetServerip ¶
func (*LoginResp) GetSessionId ¶
func (*LoginResp) GetSessionKey ¶
func (*LoginResp) GetTimestamp ¶
func (*LoginResp) ProtoMessage ¶
func (*LoginResp) ProtoMessage()
type LogoutReq ¶
type LogoutReq struct { Reason *string `protobuf:"bytes,1,opt,name=reason" json:"reason,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*LogoutReq) Descriptor ¶
func (*LogoutReq) ProtoMessage ¶
func (*LogoutReq) ProtoMessage()
type LogoutResp ¶
type LogoutResp struct { Result *uint32 `protobuf:"varint,1,req,name=result" json:"result,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*LogoutResp) Descriptor ¶
func (*LogoutResp) Descriptor() ([]byte, []int)
func (*LogoutResp) GetResult ¶
func (m *LogoutResp) GetResult() uint32
func (*LogoutResp) ProtoMessage ¶
func (*LogoutResp) ProtoMessage()
func (*LogoutResp) Reset ¶
func (m *LogoutResp) Reset()
func (*LogoutResp) String ¶
func (m *LogoutResp) String() string
type MemberJoinChatRoomNotify ¶
type MemberJoinChatRoomNotify struct { Room *ChatRoom `protobuf:"bytes,1,req,name=room" json:"room,omitempty"` XXX_unrecognized []byte `json:"-"` }
-----new member join chat room-----// Notify: server -> user send to all member including join members
func (*MemberJoinChatRoomNotify) Descriptor ¶
func (*MemberJoinChatRoomNotify) Descriptor() ([]byte, []int)
func (*MemberJoinChatRoomNotify) GetRoom ¶
func (m *MemberJoinChatRoomNotify) GetRoom() *ChatRoom
func (*MemberJoinChatRoomNotify) ProtoMessage ¶
func (*MemberJoinChatRoomNotify) ProtoMessage()
func (*MemberJoinChatRoomNotify) Reset ¶
func (m *MemberJoinChatRoomNotify) Reset()
func (*MemberJoinChatRoomNotify) String ¶
func (m *MemberJoinChatRoomNotify) String() string
type MemberQuitChatRoomNotify ¶
type MemberQuitChatRoomNotify struct { Room *ChatRoom `protobuf:"bytes,1,req,name=room" json:"room,omitempty"` XXX_unrecognized []byte `json:"-"` }
-----member quit chat room notify-----// Notify: server -> user send to all member excluding quiting member
func (*MemberQuitChatRoomNotify) Descriptor ¶
func (*MemberQuitChatRoomNotify) Descriptor() ([]byte, []int)
func (*MemberQuitChatRoomNotify) GetRoom ¶
func (m *MemberQuitChatRoomNotify) GetRoom() *ChatRoom
func (*MemberQuitChatRoomNotify) ProtoMessage ¶
func (*MemberQuitChatRoomNotify) ProtoMessage()
func (*MemberQuitChatRoomNotify) Reset ¶
func (m *MemberQuitChatRoomNotify) Reset()
func (*MemberQuitChatRoomNotify) String ¶
func (m *MemberQuitChatRoomNotify) String() string
type Message ¶
type Message struct { Msgid *uint32 `protobuf:"varint,1,req,name=msgid" json:"msgid,omitempty"` Sn *uint64 `protobuf:"varint,2,req,name=sn" json:"sn,omitempty"` Sender *string `protobuf:"bytes,3,opt,name=sender" json:"sender,omitempty"` Receiver *string `protobuf:"bytes,4,opt,name=receiver" json:"receiver,omitempty"` ReceiverType *string `protobuf:"bytes,5,opt,name=receiver_type" json:"receiver_type,omitempty"` Req *Request `protobuf:"bytes,6,opt,name=req" json:"req,omitempty"` Resp *Response `protobuf:"bytes,7,opt,name=resp" json:"resp,omitempty"` Notify *Notify `protobuf:"bytes,8,opt,name=notify" json:"notify,omitempty"` Ack *Ack `protobuf:"bytes,9,opt,name=ack" json:"ack,omitempty"` ProxyMesg *Proxy `protobuf:"bytes,10,opt,name=proxy_mesg" json:"proxy_mesg,omitempty"` ClientData *uint64 `protobuf:"varint,11,opt,name=client_data" json:"client_data,omitempty"` SenderType *string `protobuf:"bytes,12,opt,name=sender_type" json:"sender_type,omitempty"` SenderJid *string `protobuf:"bytes,13,opt,name=sender_jid" json:"sender_jid,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) GetClientData ¶
func (*Message) GetProxyMesg ¶
func (*Message) GetReceiver ¶
func (*Message) GetReceiverType ¶
func (*Message) GetSenderJid ¶
func (*Message) GetSenderType ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type NewMessageNotify ¶
type NewMessageNotify struct { InfoType *string `protobuf:"bytes,1,req,name=info_type" json:"info_type,omitempty"` InfoContent []byte `protobuf:"bytes,2,opt,name=info_content" json:"info_content,omitempty"` InfoId *int64 `protobuf:"varint,3,opt,name=info_id" json:"info_id,omitempty"` QueryAfterSeconds *uint32 `protobuf:"varint,4,opt,name=query_after_seconds" json:"query_after_seconds,omitempty"` XXX_unrecognized []byte `json:"-"` }
Server active send, Client passive receive Message Begin
func (*NewMessageNotify) Descriptor ¶
func (*NewMessageNotify) Descriptor() ([]byte, []int)
func (*NewMessageNotify) GetInfoContent ¶
func (m *NewMessageNotify) GetInfoContent() []byte
func (*NewMessageNotify) GetInfoId ¶
func (m *NewMessageNotify) GetInfoId() int64
func (*NewMessageNotify) GetInfoType ¶
func (m *NewMessageNotify) GetInfoType() string
func (*NewMessageNotify) GetQueryAfterSeconds ¶
func (m *NewMessageNotify) GetQueryAfterSeconds() uint32
func (*NewMessageNotify) ProtoMessage ¶
func (*NewMessageNotify) ProtoMessage()
func (*NewMessageNotify) Reset ¶
func (m *NewMessageNotify) Reset()
func (*NewMessageNotify) String ¶
func (m *NewMessageNotify) String() string
type Notify ¶
type Notify struct { NewinfoNtf *NewMessageNotify `protobuf:"bytes,1,opt,name=newinfo_ntf" json:"newinfo_ntf,omitempty"` ReloginNtf *ReLoginNotify `protobuf:"bytes,2,opt,name=relogin_ntf" json:"relogin_ntf,omitempty"` ReconnectNtf *ReConnectNotify `protobuf:"bytes,3,opt,name=reconnect_ntf" json:"reconnect_ntf,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Notify) Descriptor ¶
func (*Notify) GetNewinfoNtf ¶
func (m *Notify) GetNewinfoNtf() *NewMessageNotify
func (*Notify) GetReconnectNtf ¶
func (m *Notify) GetReconnectNtf() *ReConnectNotify
func (*Notify) GetReloginNtf ¶
func (m *Notify) GetReloginNtf() *ReLoginNotify
func (*Notify) ProtoMessage ¶
func (*Notify) ProtoMessage()
type Pair ¶
type Pair struct { Key []byte `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` XXX_unrecognized []byte `json:"-"` }
Common Define Begin
func (*Pair) Descriptor ¶
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
type Proxy ¶
type Proxy struct { Sender *string `protobuf:"bytes,1,req,name=sender" json:"sender,omitempty"` Receiver []*RouteInfo `protobuf:"bytes,2,rep,name=receiver" json:"receiver,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Proxy) Descriptor ¶
func (*Proxy) GetReceiver ¶
func (*Proxy) ProtoMessage ¶
func (*Proxy) ProtoMessage()
type QueryAllGameRoomRequest ¶
type QueryAllGameRoomRequest struct {
XXX_unrecognized []byte `json:"-"`
}
Request: user -> server
list all existing game and room mapping
func (*QueryAllGameRoomRequest) Descriptor ¶
func (*QueryAllGameRoomRequest) Descriptor() ([]byte, []int)
func (*QueryAllGameRoomRequest) ProtoMessage ¶
func (*QueryAllGameRoomRequest) ProtoMessage()
func (*QueryAllGameRoomRequest) Reset ¶
func (m *QueryAllGameRoomRequest) Reset()
func (*QueryAllGameRoomRequest) String ¶
func (m *QueryAllGameRoomRequest) String() string
type QueryAllGameRoomResponse ¶
type QueryAllGameRoomResponse struct { Maplist []*CRPair `protobuf:"bytes,1,rep,name=maplist" json:"maplist,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*QueryAllGameRoomResponse) Descriptor ¶
func (*QueryAllGameRoomResponse) Descriptor() ([]byte, []int)
func (*QueryAllGameRoomResponse) GetMaplist ¶
func (m *QueryAllGameRoomResponse) GetMaplist() []*CRPair
func (*QueryAllGameRoomResponse) ProtoMessage ¶
func (*QueryAllGameRoomResponse) ProtoMessage()
func (*QueryAllGameRoomResponse) Reset ¶
func (m *QueryAllGameRoomResponse) Reset()
func (*QueryAllGameRoomResponse) String ¶
func (m *QueryAllGameRoomResponse) String() string
type QueryChatRoomIDRequest ¶
type QueryChatRoomIDRequest struct { Gameid *string `protobuf:"bytes,1,req,name=gameid" json:"gameid,omitempty"` XXX_unrecognized []byte `json:"-"` }
Request: user -> server
gameid: game id;
func (*QueryChatRoomIDRequest) Descriptor ¶
func (*QueryChatRoomIDRequest) Descriptor() ([]byte, []int)
func (*QueryChatRoomIDRequest) GetGameid ¶
func (m *QueryChatRoomIDRequest) GetGameid() string
func (*QueryChatRoomIDRequest) ProtoMessage ¶
func (*QueryChatRoomIDRequest) ProtoMessage()
func (*QueryChatRoomIDRequest) Reset ¶
func (m *QueryChatRoomIDRequest) Reset()
func (*QueryChatRoomIDRequest) String ¶
func (m *QueryChatRoomIDRequest) String() string
type QueryChatRoomIDResponse ¶
type QueryChatRoomIDResponse struct { Roomid []byte `protobuf:"bytes,1,opt,name=roomid" json:"roomid,omitempty"` Gameid *string `protobuf:"bytes,2,opt,name=gameid" json:"gameid,omitempty"` XXX_unrecognized []byte `json:"-"` }
Response
func (*QueryChatRoomIDResponse) Descriptor ¶
func (*QueryChatRoomIDResponse) Descriptor() ([]byte, []int)
func (*QueryChatRoomIDResponse) GetGameid ¶
func (m *QueryChatRoomIDResponse) GetGameid() string
func (*QueryChatRoomIDResponse) GetRoomid ¶
func (m *QueryChatRoomIDResponse) GetRoomid() []byte
func (*QueryChatRoomIDResponse) ProtoMessage ¶
func (*QueryChatRoomIDResponse) ProtoMessage()
func (*QueryChatRoomIDResponse) Reset ¶
func (m *QueryChatRoomIDResponse) Reset()
func (*QueryChatRoomIDResponse) String ¶
func (m *QueryChatRoomIDResponse) String() string
type QuitChatRoomRequest ¶
type QuitChatRoomRequest struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` Room *ChatRoom `protobuf:"bytes,2,opt,name=room" json:"room,omitempty"` XXX_unrecognized []byte `json:"-"` }
Request: user -> server
roomid: room id; room: which is used between chatroom server and db
func (*QuitChatRoomRequest) Descriptor ¶
func (*QuitChatRoomRequest) Descriptor() ([]byte, []int)
func (*QuitChatRoomRequest) GetRoom ¶
func (m *QuitChatRoomRequest) GetRoom() *ChatRoom
func (*QuitChatRoomRequest) GetRoomid ¶
func (m *QuitChatRoomRequest) GetRoomid() []byte
func (*QuitChatRoomRequest) ProtoMessage ¶
func (*QuitChatRoomRequest) ProtoMessage()
func (*QuitChatRoomRequest) Reset ¶
func (m *QuitChatRoomRequest) Reset()
func (*QuitChatRoomRequest) String ¶
func (m *QuitChatRoomRequest) String() string
type QuitChatRoomResponse ¶
type QuitChatRoomResponse struct { Room *ChatRoom `protobuf:"bytes,1,opt,name=room" json:"room,omitempty"` XXX_unrecognized []byte `json:"-"` }
Response
func (*QuitChatRoomResponse) Descriptor ¶
func (*QuitChatRoomResponse) Descriptor() ([]byte, []int)
func (*QuitChatRoomResponse) GetRoom ¶
func (m *QuitChatRoomResponse) GetRoom() *ChatRoom
func (*QuitChatRoomResponse) ProtoMessage ¶
func (*QuitChatRoomResponse) ProtoMessage()
func (*QuitChatRoomResponse) Reset ¶
func (m *QuitChatRoomResponse) Reset()
func (*QuitChatRoomResponse) String ¶
func (m *QuitChatRoomResponse) String() string
type ReConnectNotify ¶
type ReConnectNotify struct { Ip *string `protobuf:"bytes,1,opt,name=ip" json:"ip,omitempty"` Port *uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"` MoreIps []string `protobuf:"bytes,3,rep,name=more_ips" json:"more_ips,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ReConnectNotify) Descriptor ¶
func (*ReConnectNotify) Descriptor() ([]byte, []int)
func (*ReConnectNotify) GetIp ¶
func (m *ReConnectNotify) GetIp() string
func (*ReConnectNotify) GetMoreIps ¶
func (m *ReConnectNotify) GetMoreIps() []string
func (*ReConnectNotify) GetPort ¶
func (m *ReConnectNotify) GetPort() uint32
func (*ReConnectNotify) ProtoMessage ¶
func (*ReConnectNotify) ProtoMessage()
func (*ReConnectNotify) Reset ¶
func (m *ReConnectNotify) Reset()
func (*ReConnectNotify) String ¶
func (m *ReConnectNotify) String() string
type ReLoginNotify ¶
type ReLoginNotify struct { NewIp *string `protobuf:"bytes,1,opt,name=new_ip" json:"new_ip,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ReLoginNotify) Descriptor ¶
func (*ReLoginNotify) Descriptor() ([]byte, []int)
func (*ReLoginNotify) GetNewIp ¶
func (m *ReLoginNotify) GetNewIp() string
func (*ReLoginNotify) ProtoMessage ¶
func (*ReLoginNotify) ProtoMessage()
func (*ReLoginNotify) Reset ¶
func (m *ReLoginNotify) Reset()
func (*ReLoginNotify) String ¶
func (m *ReLoginNotify) String() string
type ReqEQ1User ¶
type ReqEQ1User struct { Userid *string `protobuf:"bytes,1,req,name=userid" json:"userid,omitempty"` UserType *string `protobuf:"bytes,2,req,name=user_type" json:"user_type,omitempty"` AppId *uint32 `protobuf:"varint,3,opt,name=app_id" json:"app_id,omitempty"` XXX_unrecognized []byte `json:"-"` }
a lot of userid query
func (*ReqEQ1User) Descriptor ¶
func (*ReqEQ1User) Descriptor() ([]byte, []int)
func (*ReqEQ1User) GetAppId ¶
func (m *ReqEQ1User) GetAppId() uint32
func (*ReqEQ1User) GetUserType ¶
func (m *ReqEQ1User) GetUserType() string
func (*ReqEQ1User) GetUserid ¶
func (m *ReqEQ1User) GetUserid() string
func (*ReqEQ1User) ProtoMessage ¶
func (*ReqEQ1User) ProtoMessage()
func (*ReqEQ1User) Reset ¶
func (m *ReqEQ1User) Reset()
func (*ReqEQ1User) String ¶
func (m *ReqEQ1User) String() string
type Request ¶
type Request struct { Login *LoginReq `protobuf:"bytes,2,opt,name=login" json:"login,omitempty"` Chat *ChatReq `protobuf:"bytes,3,opt,name=chat" json:"chat,omitempty"` GetInfo *GetInfoReq `protobuf:"bytes,5,opt,name=get_info" json:"get_info,omitempty"` Logout *LogoutReq `protobuf:"bytes,6,opt,name=logout" json:"logout,omitempty"` InitLoginReq *InitLoginReq `protobuf:"bytes,9,opt,name=init_login_req" json:"init_login_req,omitempty"` ServiceReq *Service_Req `protobuf:"bytes,11,opt,name=service_req" json:"service_req,omitempty"` E1QueryUser *Ex1QueryUserStatusReq `protobuf:"bytes,12,opt,name=e1_query_user" json:"e1_query_user,omitempty"` GetMultiInfos *GetMultiInfosReq `protobuf:"bytes,100,opt,name=get_multi_infos" json:"get_multi_infos,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetE1QueryUser ¶
func (m *Request) GetE1QueryUser() *Ex1QueryUserStatusReq
func (*Request) GetGetInfo ¶
func (m *Request) GetGetInfo() *GetInfoReq
func (*Request) GetGetMultiInfos ¶
func (m *Request) GetGetMultiInfos() *GetMultiInfosReq
func (*Request) GetInitLoginReq ¶
func (m *Request) GetInitLoginReq() *InitLoginReq
func (*Request) GetServiceReq ¶
func (m *Request) GetServiceReq() *Service_Req
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type RespEQ1User ¶
type RespEQ1User struct { Userid *string `protobuf:"bytes,1,req,name=userid" json:"userid,omitempty"` UserType *string `protobuf:"bytes,2,req,name=user_type" json:"user_type,omitempty"` Status *int32 `protobuf:"varint,3,req,name=status" json:"status,omitempty"` Jid *string `protobuf:"bytes,4,opt,name=jid" json:"jid,omitempty"` AppId *uint32 `protobuf:"varint,5,opt,name=app_id" json:"app_id,omitempty"` Platform *string `protobuf:"bytes,6,opt,name=platform" json:"platform,omitempty"` MobileType *string `protobuf:"bytes,7,opt,name=mobile_type" json:"mobile_type,omitempty"` ClientVer *uint32 `protobuf:"varint,8,opt,name=client_ver" json:"client_ver,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RespEQ1User) Descriptor ¶
func (*RespEQ1User) Descriptor() ([]byte, []int)
func (*RespEQ1User) GetAppId ¶
func (m *RespEQ1User) GetAppId() uint32
func (*RespEQ1User) GetClientVer ¶
func (m *RespEQ1User) GetClientVer() uint32
func (*RespEQ1User) GetJid ¶
func (m *RespEQ1User) GetJid() string
func (*RespEQ1User) GetMobileType ¶
func (m *RespEQ1User) GetMobileType() string
func (*RespEQ1User) GetPlatform ¶
func (m *RespEQ1User) GetPlatform() string
func (*RespEQ1User) GetStatus ¶
func (m *RespEQ1User) GetStatus() int32
func (*RespEQ1User) GetUserType ¶
func (m *RespEQ1User) GetUserType() string
func (*RespEQ1User) GetUserid ¶
func (m *RespEQ1User) GetUserid() string
func (*RespEQ1User) ProtoMessage ¶
func (*RespEQ1User) ProtoMessage()
func (*RespEQ1User) Reset ¶
func (m *RespEQ1User) Reset()
func (*RespEQ1User) String ¶
func (m *RespEQ1User) String() string
type Response ¶
type Response struct { Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` Login *LoginResp `protobuf:"bytes,3,opt,name=login" json:"login,omitempty"` Chat *ChatResp `protobuf:"bytes,4,opt,name=chat" json:"chat,omitempty"` GetInfo *GetInfoResp `protobuf:"bytes,6,opt,name=get_info" json:"get_info,omitempty"` Logout *LogoutResp `protobuf:"bytes,7,opt,name=logout" json:"logout,omitempty"` InitLoginResp *InitLoginResp `protobuf:"bytes,10,opt,name=init_login_resp" json:"init_login_resp,omitempty"` ServiceResp *Service_Resp `protobuf:"bytes,12,opt,name=service_resp" json:"service_resp,omitempty"` E1QueryUser *Ex1QueryUserStatusResp `protobuf:"bytes,13,opt,name=e1_query_user" json:"e1_query_user,omitempty"` GetMultiInfos *GetMultiInfosResp `protobuf:"bytes,100,opt,name=get_multi_infos" json:"get_multi_infos,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetE1QueryUser ¶
func (m *Response) GetE1QueryUser() *Ex1QueryUserStatusResp
func (*Response) GetGetInfo ¶
func (m *Response) GetGetInfo() *GetInfoResp
func (*Response) GetGetMultiInfos ¶
func (m *Response) GetGetMultiInfos() *GetMultiInfosResp
func (*Response) GetInitLoginResp ¶
func (m *Response) GetInitLoginResp() *InitLoginResp
func (*Response) GetLogout ¶
func (m *Response) GetLogout() *LogoutResp
func (*Response) GetServiceResp ¶
func (m *Response) GetServiceResp() *Service_Resp
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type RouteInfo ¶
type RouteInfo struct { Username []byte `protobuf:"bytes,1,req,name=username" json:"username,omitempty"` MsgExchanger *string `protobuf:"bytes,2,req,name=msg_exchanger" json:"msg_exchanger,omitempty"` MsgRouter *string `protobuf:"bytes,3,req,name=msg_router" json:"msg_router,omitempty"` XXX_unrecognized []byte `json:"-"` }
Message Router Area1 to Area2 Begin
func (*RouteInfo) Descriptor ¶
func (*RouteInfo) GetMsgExchanger ¶
func (*RouteInfo) GetMsgRouter ¶
func (*RouteInfo) GetUsername ¶
func (*RouteInfo) ProtoMessage ¶
func (*RouteInfo) ProtoMessage()
type Service_Req ¶
type Service_Req struct { ServiceId *uint32 `protobuf:"varint,1,req,name=service_id" json:"service_id,omitempty"` Request []byte `protobuf:"bytes,2,req,name=request" json:"request,omitempty"` XXX_unrecognized []byte `json:"-"` }
all service control cmd
func (*Service_Req) Descriptor ¶
func (*Service_Req) Descriptor() ([]byte, []int)
func (*Service_Req) GetRequest ¶
func (m *Service_Req) GetRequest() []byte
func (*Service_Req) GetServiceId ¶
func (m *Service_Req) GetServiceId() uint32
func (*Service_Req) ProtoMessage ¶
func (*Service_Req) ProtoMessage()
func (*Service_Req) Reset ¶
func (m *Service_Req) Reset()
func (*Service_Req) String ¶
func (m *Service_Req) String() string
type Service_Resp ¶
type Service_Resp struct { ServiceId *uint32 `protobuf:"varint,1,req,name=service_id" json:"service_id,omitempty"` Response []byte `protobuf:"bytes,2,req,name=response" json:"response,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Service_Resp) Descriptor ¶
func (*Service_Resp) Descriptor() ([]byte, []int)
func (*Service_Resp) GetResponse ¶
func (m *Service_Resp) GetResponse() []byte
func (*Service_Resp) GetServiceId ¶
func (m *Service_Resp) GetServiceId() uint32
func (*Service_Resp) ProtoMessage ¶
func (*Service_Resp) ProtoMessage()
func (*Service_Resp) Reset ¶
func (m *Service_Resp) Reset()
func (*Service_Resp) String ¶
func (m *Service_Resp) String() string
type SubscribeRequest ¶
type SubscribeRequest struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` Sub *bool `protobuf:"varint,2,opt,name=sub,def=0" json:"sub,omitempty"` XXX_unrecognized []byte `json:"-"` }
subscribe request, if subscribe or unsubscribe chatroom messages
func (*SubscribeRequest) Descriptor ¶
func (*SubscribeRequest) Descriptor() ([]byte, []int)
func (*SubscribeRequest) GetRoomid ¶
func (m *SubscribeRequest) GetRoomid() []byte
func (*SubscribeRequest) GetSub ¶
func (m *SubscribeRequest) GetSub() bool
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) Reset ¶
func (m *SubscribeRequest) Reset()
func (*SubscribeRequest) String ¶
func (m *SubscribeRequest) String() string
type SubscribeResponse ¶
type SubscribeResponse struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` Sub *bool `protobuf:"varint,2,opt,name=sub,def=0" json:"sub,omitempty"` XXX_unrecognized []byte `json:"-"` }
subscribe response
func (*SubscribeResponse) Descriptor ¶
func (*SubscribeResponse) Descriptor() ([]byte, []int)
func (*SubscribeResponse) GetRoomid ¶
func (m *SubscribeResponse) GetRoomid() []byte
func (*SubscribeResponse) GetSub ¶
func (m *SubscribeResponse) GetSub() bool
func (*SubscribeResponse) ProtoMessage ¶
func (*SubscribeResponse) ProtoMessage()
func (*SubscribeResponse) Reset ¶
func (m *SubscribeResponse) Reset()
func (*SubscribeResponse) String ¶
func (m *SubscribeResponse) String() string
type SyncRoomToDBRequest ¶
type SyncRoomToDBRequest struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` XXX_unrecognized []byte `json:"-"` }
Request: chatroom -> chatroom dba it's internal request
func (*SyncRoomToDBRequest) Descriptor ¶
func (*SyncRoomToDBRequest) Descriptor() ([]byte, []int)
func (*SyncRoomToDBRequest) GetRoomid ¶
func (m *SyncRoomToDBRequest) GetRoomid() []byte
func (*SyncRoomToDBRequest) ProtoMessage ¶
func (*SyncRoomToDBRequest) ProtoMessage()
func (*SyncRoomToDBRequest) Reset ¶
func (m *SyncRoomToDBRequest) Reset()
func (*SyncRoomToDBRequest) String ¶
func (m *SyncRoomToDBRequest) String() string
type UpdateChatRoomNotify ¶
type UpdateChatRoomNotify struct { Room *ChatRoom `protobuf:"bytes,1,req,name=room" json:"room,omitempty"` User *CRUser `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` XXX_unrecognized []byte `json:"-"` }
-----update chatroom notify-----// Notify: server -> user send to all members
func (*UpdateChatRoomNotify) Descriptor ¶
func (*UpdateChatRoomNotify) Descriptor() ([]byte, []int)
func (*UpdateChatRoomNotify) GetRoom ¶
func (m *UpdateChatRoomNotify) GetRoom() *ChatRoom
func (*UpdateChatRoomNotify) GetUser ¶
func (m *UpdateChatRoomNotify) GetUser() *CRUser
func (*UpdateChatRoomNotify) ProtoMessage ¶
func (*UpdateChatRoomNotify) ProtoMessage()
func (*UpdateChatRoomNotify) Reset ¶
func (m *UpdateChatRoomNotify) Reset()
func (*UpdateChatRoomNotify) String ¶
func (m *UpdateChatRoomNotify) String() string
type UpdateChatRoomRequest ¶
type UpdateChatRoomRequest struct { Roomid []byte `protobuf:"bytes,1,req,name=roomid" json:"roomid,omitempty"` Room *ChatRoom `protobuf:"bytes,2,req,name=room" json:"room,omitempty"` XXX_unrecognized []byte `json:"-"` }
Request: user -> server room: now it only support update room's name and game id
func (*UpdateChatRoomRequest) Descriptor ¶
func (*UpdateChatRoomRequest) Descriptor() ([]byte, []int)
func (*UpdateChatRoomRequest) GetRoom ¶
func (m *UpdateChatRoomRequest) GetRoom() *ChatRoom
func (*UpdateChatRoomRequest) GetRoomid ¶
func (m *UpdateChatRoomRequest) GetRoomid() []byte
func (*UpdateChatRoomRequest) ProtoMessage ¶
func (*UpdateChatRoomRequest) ProtoMessage()
func (*UpdateChatRoomRequest) Reset ¶
func (m *UpdateChatRoomRequest) Reset()
func (*UpdateChatRoomRequest) String ¶
func (m *UpdateChatRoomRequest) String() string
type UpdateChatRoomResponse ¶
type UpdateChatRoomResponse struct { Room *ChatRoom `protobuf:"bytes,1,opt,name=room" json:"room,omitempty"` XXX_unrecognized []byte `json:"-"` }
Response: if successful, room field is valid
func (*UpdateChatRoomResponse) Descriptor ¶
func (*UpdateChatRoomResponse) Descriptor() ([]byte, []int)
func (*UpdateChatRoomResponse) GetRoom ¶
func (m *UpdateChatRoomResponse) GetRoom() *ChatRoom
func (*UpdateChatRoomResponse) ProtoMessage ¶
func (*UpdateChatRoomResponse) ProtoMessage()
func (*UpdateChatRoomResponse) Reset ¶
func (m *UpdateChatRoomResponse) Reset()
func (*UpdateChatRoomResponse) String ¶
func (m *UpdateChatRoomResponse) String() string
type UpdateRoomIDRequest ¶
type UpdateRoomIDRequest struct { Gameid *string `protobuf:"bytes,1,req,name=gameid" json:"gameid,omitempty"` Roomid []byte `protobuf:"bytes,2,req,name=roomid" json:"roomid,omitempty"` XXX_unrecognized []byte `json:"-"` }
Request: user -> server
roomid: room id gameid: game id;
func (*UpdateRoomIDRequest) Descriptor ¶
func (*UpdateRoomIDRequest) Descriptor() ([]byte, []int)
func (*UpdateRoomIDRequest) GetGameid ¶
func (m *UpdateRoomIDRequest) GetGameid() string
func (*UpdateRoomIDRequest) GetRoomid ¶
func (m *UpdateRoomIDRequest) GetRoomid() []byte
func (*UpdateRoomIDRequest) ProtoMessage ¶
func (*UpdateRoomIDRequest) ProtoMessage()
func (*UpdateRoomIDRequest) Reset ¶
func (m *UpdateRoomIDRequest) Reset()
func (*UpdateRoomIDRequest) String ¶
func (m *UpdateRoomIDRequest) String() string
type UpdateRoomIDResponse ¶
type UpdateRoomIDResponse struct {
XXX_unrecognized []byte `json:"-"`
}
Response
func (*UpdateRoomIDResponse) Descriptor ¶
func (*UpdateRoomIDResponse) Descriptor() ([]byte, []int)
func (*UpdateRoomIDResponse) ProtoMessage ¶
func (*UpdateRoomIDResponse) ProtoMessage()
func (*UpdateRoomIDResponse) Reset ¶
func (m *UpdateRoomIDResponse) Reset()
func (*UpdateRoomIDResponse) String ¶
func (m *UpdateRoomIDResponse) String() string
type User ¶
type User struct { Userid *string `protobuf:"bytes,1,req,name=userid" json:"userid,omitempty"` PropertyPairs []*Pair `protobuf:"bytes,2,rep,name=property_pairs" json:"property_pairs,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetPropertyPairs ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()