access

package
v0.0.0-...-7c02c66 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveConversationInner

func ArchiveConversationInner(ctx context.Context) http.HandlerFunc

内部接口,归档会话

func CheckJoinedConversation

func CheckJoinedConversation(ctx context.Context) http.HandlerFunc

func CreateConversation

func CreateConversation(ctx context.Context) http.HandlerFunc

todo: 创建会话成功的时候需要通知加入会话的用户

func CreateConversationInner

func CreateConversationInner(ctx context.Context) http.HandlerFunc

todo: 创建会话成功的时候需要通知加入会话的用户

func GetConversationInfo

func GetConversationInfo(ctx context.Context) http.HandlerFunc

func GetConversationLastOneId

func GetConversationLastOneId(ctx context.Context) http.HandlerFunc

func GetJoinedConversation

func GetJoinedConversation(ctx context.Context) http.HandlerFunc

func GetLast30MsgFromDb

func GetLast30MsgFromDb(ctx context.Context) http.HandlerFunc

获取会话最后30条消息

func GetLastOneMsgFromDb

func GetLastOneMsgFromDb(ctx context.Context) http.HandlerFunc

获取会话最后一条消息

func GetMsgFromDbInRange

func GetMsgFromDbInRange(ctx context.Context) http.HandlerFunc

根据消息id范围获取消息

func GetThe30MsgAfterTheId

func GetThe30MsgAfterTheId(ctx context.Context) http.HandlerFunc

获取指定会话某个消息id之后的30条消息

func GetThe30MsgBeforeTheId

func GetThe30MsgBeforeTheId(ctx context.Context) http.HandlerFunc

获取指定会话某个消息id之前的30条消息

func GetTokenBySessionInner

func GetTokenBySessionInner(ctx context.Context) http.HandlerFunc

func JoinConversation

func JoinConversation(ctx context.Context) http.HandlerFunc

外部接口

func JoinConversationInner

func JoinConversationInner(ctx context.Context) http.HandlerFunc

内部接口

func KickoutConversationInner

func KickoutConversationInner(ctx context.Context) http.HandlerFunc

内部接口,踢出用户

func LeaveConversation

func LeaveConversation(ctx context.Context) http.HandlerFunc

外部接口,离开会话

func NotifyHandler

func NotifyHandler(ctx context.Context) http.HandlerFunc

func SendMsgHandler

func SendMsgHandler(ctx context.Context) http.HandlerFunc

Types

type ArchiveConversationArgs

type ArchiveConversationArgs struct {
	ConversationIDS []string `json:"conversation_ids"`
	IsArchive       bool     `json:"is_archive"`
}

type CheckJoinedConversationArgs

type CheckJoinedConversationArgs struct {
	ConversationID string `json:"conversation_id"`
}

type KickoutConversationArgs

type KickoutConversationArgs struct {
	ConversationID string   `json:"conversation_id"`
	Sessions       []string `json:"sessions"`
}

Jump to

Keyboard shortcuts

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