logic

package
v0.0.0-...-5591726 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatAhead

func ChatAhead(ctx context.Context, req *msg.ChatAheadReq) (*ret.EmptyResp, error)

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 ChatClear

func ChatClear(ctx context.Context, req *msg.ChatClearReq) (*ret.EmptyResp, error)

清理会话,删除所有聊天信息

func ChatIds

func ChatIds(ctx context.Context, req *msg.ChatIdsReq) (*msg.ChatIdsResp, error)

得到会话的id

func ChatMute

func ChatMute(ctx context.Context, req *msg.ChatMuteReq) (*ret.EmptyResp, error)

func ChatRecordIds

func ChatRecordIds(ctx context.Context, req *msg.ChatRecordIdsReq) (*msg.ChatRecordIdsResp, error)

消息记录id

func ChatRemove

func ChatRemove(ctx context.Context, req *msg.ChatRemoveReq) (*ret.EmptyResp, error)

删除会话,单边删除

func ChatTouch

func ChatTouch(ctx context.Context, req *msg.ChatTouchReq) (*ret.EmptyResp, error)

func CloseWithMsg

func CloseWithMsg(ctx context.Context, req *msg.CloseWithMsgReq) (*ret.EmptyResp, error)

func Exchange

func Exchange(ctx context.Context, req *msg.ExchangeReq) (*ret.EmptyResp, error)

func GetGroupInfo

func GetGroupInfo(ctx context.Context, groupId int64) (*user.GroupInfo, error)

func GetGroupMemberInfo

func GetGroupMemberInfo(ctx context.Context, groupId, memberId int64) (*user.GroupMember, error)

func GetSysMsg

func GetSysMsg(ctx context.Context, req *msg.GetSysMsgReq) (*msg.GetSysMsgResp, error)

func HandleImMsg

func HandleImMsg(b []byte)

收到群系统消息

func HandleLogTrace

func HandleLogTrace(b []byte)

func HandleServerEvent

func HandleServerEvent(b []byte)

func Init

func Init()

func ManagerChatMsgRevert

func ManagerChatMsgRevert(ctx context.Context, req *msg.ManagerChatMsgRevertReq) (*ret.EmptyResp, error)

管理撤回消息

func MarkChatRead

func MarkChatRead(ctx context.Context, req *msg.MarkChatReadReq) (*ret.EmptyResp, error)

标记会话已读

func Msg

func Msg(ctx context.Context, req *msg.MsgReq) (*msg.MsgResp, error)

func RevertSelfMsg

func RevertSelfMsg(ctx context.Context, req *msg.RevertSelfMsgReq) (*ret.EmptyResp, error)

撤回自己的消息

func SessConnect

func SessConnect(ctx context.Context, req *msg.SessConnectReq) (*ret.BytesResp, error)

func Stop

func Stop()

func SysMsg

func SysMsg(ctx context.Context, req *msg.SysMsgReq) (*ret.IntResp, error)

func UserClosed

func UserClosed(ctx context.Context, req *msg.UserClosedReq) (*ret.EmptyResp, error)

Types

type TinySess

type TinySess struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL