Documentation ¶
Index ¶
- func ChatAhead(ctx context.Context, req *msg.ChatAheadReq) (*ret.EmptyResp, error)
- func ChatByIds(ctx context.Context, req *msg.ChatByIdsReq) (*msg.ChatByIdsResp, error)
- func ChatByUids(ctx context.Context, req *msg.ChatByUidsReq) (*msg.ChatByUidsResp, error)
- func ChatClear(ctx context.Context, req *msg.ChatClearReq) (*ret.EmptyResp, error)
- func ChatIds(ctx context.Context, req *msg.ChatIdsReq) (*msg.ChatIdsResp, error)
- func ChatMute(ctx context.Context, req *msg.ChatMuteReq) (*ret.EmptyResp, error)
- func ChatRecordByIds(ctx context.Context, req *msg.ChatRecordByIdsReq) (*msg.ChatRecordByIdsResp, error)
- func ChatRecordIds(ctx context.Context, req *msg.ChatRecordIdsReq) (*msg.ChatRecordIdsResp, error)
- func ChatRemove(ctx context.Context, req *msg.ChatRemoveReq) (*ret.EmptyResp, error)
- func ChatTouch(ctx context.Context, req *msg.ChatTouchReq) (*ret.EmptyResp, error)
- func CloseWithMsg(ctx context.Context, req *msg.CloseWithMsgReq) (*ret.EmptyResp, error)
- func Exchange(ctx context.Context, req *msg.ExchangeReq) (*ret.EmptyResp, error)
- func GetGroupInfo(ctx context.Context, groupId int64) (*user.GroupInfo, error)
- func GetGroupMemberInfo(ctx context.Context, groupId, memberId int64) (*user.GroupMember, error)
- func GetMemberIdByChatId(ctx context.Context, req *msg.GetMemberIdByChatIdReq) (*msg.GetMemberIdByChatIdResp, error)
- func GetSysMsg(ctx context.Context, req *msg.GetSysMsgReq) (*msg.GetSysMsgResp, error)
- func HandleImMsg(b []byte)
- func HandleLogTrace(b []byte)
- func HandleServerEvent(b []byte)
- func Init()
- func ManagerChatMsgRevert(ctx context.Context, req *msg.ManagerChatMsgRevertReq) (*ret.EmptyResp, error)
- func MarkChatRead(ctx context.Context, req *msg.MarkChatReadReq) (*ret.EmptyResp, error)
- func Msg(ctx context.Context, req *msg.MsgReq) (*msg.MsgResp, error)
- func RevertSelfMsg(ctx context.Context, req *msg.RevertSelfMsgReq) (*ret.EmptyResp, error)
- func SessConnect(ctx context.Context, req *msg.SessConnectReq) (*ret.BytesResp, error)
- func Stop()
- func SysMsg(ctx context.Context, req *msg.SysMsgReq) (*ret.IntResp, error)
- func UserClosed(ctx context.Context, req *msg.UserClosedReq) (*ret.EmptyResp, error)
- type TinySess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatByIds ¶
func ChatByIds(ctx context.Context, req *msg.ChatByIdsReq) (*msg.ChatByIdsResp, error)
func ChatByUids ¶
func ChatByUids(ctx context.Context, req *msg.ChatByUidsReq) (*msg.ChatByUidsResp, error)
func ChatIds ¶
func ChatIds(ctx context.Context, req *msg.ChatIdsReq) (*msg.ChatIdsResp, error)
得到会话的id
func ChatRecordByIds ¶
func ChatRecordByIds(ctx context.Context, req *msg.ChatRecordByIdsReq) (*msg.ChatRecordByIdsResp, error)
func ChatRecordIds ¶
func ChatRecordIds(ctx context.Context, req *msg.ChatRecordIdsReq) (*msg.ChatRecordIdsResp, error)
消息记录id
func ChatRemove ¶
删除会话,单边删除
func CloseWithMsg ¶
func GetGroupMemberInfo ¶
func GetMemberIdByChatId ¶
func GetMemberIdByChatId(ctx context.Context, req *msg.GetMemberIdByChatIdReq) (*msg.GetMemberIdByChatIdResp, error)
func GetSysMsg ¶
func GetSysMsg(ctx context.Context, req *msg.GetSysMsgReq) (*msg.GetSysMsgResp, error)
func HandleLogTrace ¶
func HandleLogTrace(b []byte)
func HandleServerEvent ¶
func HandleServerEvent(b []byte)
func ManagerChatMsgRevert ¶
func ManagerChatMsgRevert(ctx context.Context, req *msg.ManagerChatMsgRevertReq) (*ret.EmptyResp, error)
管理撤回消息
func MarkChatRead ¶
标记会话已读
func RevertSelfMsg ¶
撤回自己的消息
func SessConnect ¶
func UserClosed ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.