package
0.0.3
Repository: https://github.com/meikwei/protocol.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author

# Variables

No description provided by the author
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.

# Structs

ActiveGroup 定义了活跃群组的消息结构.
ActiveUser 定义了活跃用户的消息结构.
batchSendMessageReq 定义了批量发送消息的请求消息.
batchSendMessageResp 定义了批量发送消息的响应消息.
ChatLog 定义了单条聊天日志的消息结构.
ClearConversationsMsgReq 用于清除对话消息的请求 conversationIDs: 对话ID集合 userID: 用户ID deleteSyncOpt: 删除消息的同步选项.
ClearConversationsMsgResp 用于清除对话消息的响应.
ClearMsgReq 定义了清除消息的请求消息.
ClearMsgResp 定义了清除消息的响应消息.
DeleteMsgPhysicalBySeqReq 用于通过序列号物理删除消息的请求 conversationID: 对话ID seqs: 消息序列号集合.
DeleteMsgPhysicalBySeqResp 用于通过序列号物理删除消息的响应.
DeleteMsgPhysicalReq 用于物理删除消息的请求 conversationIDs: 对话ID集合 timestamp: 删除时间戳.
DeleteMsgPhysicalResp 用于物理删除消息的响应.
DeleteMsgsReq 用于删除消息的请求 conversationID: 对话ID seqs: 消息序列号集合 userID: 用户ID deleteSyncOpt: 删除消息的同步选项.
DeleteMsgsResp 用于删除消息的响应.
DeleteSyncOpt 用于删除消息的同步选项 IsSyncSelf: 是否同步自身 IsSyncOther: 是否同步其他设备.
DelMsgsReq 用于删除消息的请求.
DelMsgsResp 用于删除消息的响应.
GetActiveGroupReq 定义了获取活跃群组的请求消息.
GetActiveGroupResp 定义了获取活跃群组的响应消息.
GetActiveUserReq 定义了获取活跃用户的请求消息.
GetActiveUserResp 定义了获取活跃用户的响应消息.
GetConversationMaxSeqReq 用于获取对话最大序列号的请求 conversationID: 对话ID.
GetConversationMaxSeqResp 用于获取对话最大序列号的响应 maxSeq: 对话的最大序列号.
GetConversationsHasReadAndMaxSeqReq 用于获取用户对话的已读状态和最大序列号的请求 userID: 用户ID conversationIDs: 对话ID集合.
GetConversationsHasReadAndMaxSeqResp 定义了获取对话的已读和最大序列号的响应消息.
GetHasReadSeqsReq 用于获取用户对话已读序列号的请求 userID: 用户ID conversationIDs: 对话ID集合.
GetMaxAndMinSeqReq 用于请求获取最大和最小的序列号 UserID: 用户ID.
GetMaxAndMinSeqResp 用于响应最大和最小的序列号 MaxSeq: 最大序列号 MinSeq: 最小序列号.
GetMaxSeqsReq 用于获取对话最大序列号的请求 conversationIDs: 对话ID集合.
GetMsgByConversationIDsReq 用于根据对话ID获取消息数据的请求 conversationIDs: 对话ID集合 maxSeqs: 对话的最大序列号映射.
GetMsgByConversationIDsResp 用于根据对话ID获取消息数据的响应 msgDatas: 对话ID与消息数据的映射.
GetSendMsgStatusReq 用于获取消息发送状态的请求.
GetSendMsgStatusResp 用于获取消息发送状态的响应 status: 消息发送状态.
GetServerTimeReq 定义了获取服务器时间的请求消息.
GetServerTimeResp 定义了获取服务器时间的响应消息.
MarkConversationAsReadReq 用于标记会话为已读的请求 conversationID: 对话ID userID: 用户ID hasReadSeq: 已读的最新序列号 seqs: 需要标记为已读的消息序列号集合.
MarkConversationAsReadResp 用于标记会话为已读的响应.
MarkMsgsAsReadReq 用于标记消息为已读的请求 conversationID: 对话ID seqs: 消息序列号集合 userID: 用户ID.
MarkMsgsAsReadResp 用于标记消息为已读的响应.
MsgDataToDB 用于将消息数据存储到数据库 msgData: 需要存储的消息数据.
MsgDataToModifyByMQ 用于通过消息队列修改消息数据 messages: 需要修改的消息数据集合 conversationID: 对话ID.
MsgDataToMongoByMQ 用于通过消息队列将消息数据存储到MongoDB lastSeq: 最后一条消息的序列号 conversationID: 对话ID msgData: 需要存储的消息数据集合.
MsgDataToMQ 用于将消息数据发送到消息队列 token: 鉴权token msgData: 需要发送的消息数据.
PushMsgDataToMQ 用于向消息队列推送消息数据 msgData: 需要推送的消息数据 conversationID: 对话ID.
RevokeMsgReq 用于撤销消息的请求 conversationID: 对话ID seq: 消息序列号 userID: 用户ID.
RevokeMsgResp 用于撤销消息的响应.
SearchMessageReq 定义了搜索消息的请求消息.
SearchMessageResp 定义了搜索消息的响应消息.
SendMsgReq 用于发送消息的请求 msgData: 需要发送的消息数据.
SendMsgResp 用于发送消息的响应 serverMsgID: 服务器消息ID clientMsgID: 客户端消息ID sendTime: 发送时间.
Seqs 消息结构定义了与序列相关的最大值和已读信息.
SeqsInfoResp 用于存储对话最大序列号信息的响应 maxSeqs: 对话ID与最大序列号的映射.
SetConversationHasReadSeqReq 用于设置对话已读序列号的请求 conversationID: 对话ID userID: 用户ID hasReadSeq: 已读的最新序列号.
SetConversationHasReadSeqResp 用于设置对话已读序列号的响应.
SetSendMsgStatusReq 用于设置消息发送状态的请求 status: 消息发送状态.
SetSendMsgStatusResp 用于设置消息发送状态的响应.
UnimplementedMsgServer must be embedded to have forward compatible implementations.
UserClearAllMsgReq 用于用户清除所有消息的请求 userID: 用户ID deleteSyncOpt: 删除消息的同步选项.
UserClearAllMsgResp 用于用户清除所有消息的响应.

# Interfaces

MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.