Documentation ¶
Index ¶
- func ArchiveConversationInner(ctx context.Context) http.HandlerFunc
- func CheckJoinedConversation(ctx context.Context) http.HandlerFunc
- func CreateConversation(ctx context.Context) http.HandlerFunc
- func CreateConversationInner(ctx context.Context) http.HandlerFunc
- func GetConversationInfo(ctx context.Context) http.HandlerFunc
- func GetConversationLastOneId(ctx context.Context) http.HandlerFunc
- func GetJoinedConversation(ctx context.Context) http.HandlerFunc
- func GetLast30MsgFromDb(ctx context.Context) http.HandlerFunc
- func GetLastOneMsgFromDb(ctx context.Context) http.HandlerFunc
- func GetMsgFromDbInRange(ctx context.Context) http.HandlerFunc
- func GetThe30MsgAfterTheId(ctx context.Context) http.HandlerFunc
- func GetThe30MsgBeforeTheId(ctx context.Context) http.HandlerFunc
- func GetTokenBySessionInner(ctx context.Context) http.HandlerFunc
- func JoinConversation(ctx context.Context) http.HandlerFunc
- func JoinConversationInner(ctx context.Context) http.HandlerFunc
- func KickoutConversationInner(ctx context.Context) http.HandlerFunc
- func LeaveConversation(ctx context.Context) http.HandlerFunc
- func NotifyHandler(ctx context.Context) http.HandlerFunc
- func SendMsgHandler(ctx context.Context) http.HandlerFunc
- type ArchiveConversationArgs
- type CheckJoinedConversationArgs
- type KickoutConversationArgs
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 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 KickoutConversationInner ¶
func KickoutConversationInner(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 CheckJoinedConversationArgs ¶
type CheckJoinedConversationArgs struct {
ConversationID string `json:"conversation_id"`
}
type KickoutConversationArgs ¶
Click to show internal directories.
Click to hide internal directories.