api

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinParseToken

func GinParseToken(rdb redis.UniversalClient) gin.HandlerFunc

func NewGinRouter

func NewGinRouter(discov discoveryregistry.SvcDiscoveryRegistry, rdb redis.UniversalClient) *gin.Engine

func RequiredIf

func RequiredIf(fl validator.FieldLevel) bool

Types

type AuthApi

type AuthApi rpcclient.Auth

func NewAuthApi

func NewAuthApi(client rpcclient.Auth) AuthApi

func (*AuthApi) ForceLogout

func (o *AuthApi) ForceLogout(c *gin.Context)

func (*AuthApi) ParseToken

func (o *AuthApi) ParseToken(c *gin.Context)

func (*AuthApi) UserToken

func (o *AuthApi) UserToken(c *gin.Context)

type ConversationApi

type ConversationApi rpcclient.Conversation

func NewConversationApi

func NewConversationApi(client rpcclient.Conversation) ConversationApi

func (*ConversationApi) GetAllConversations

func (o *ConversationApi) GetAllConversations(c *gin.Context)

func (*ConversationApi) GetConversation

func (o *ConversationApi) GetConversation(c *gin.Context)

func (*ConversationApi) GetConversations

func (o *ConversationApi) GetConversations(c *gin.Context)

func (*ConversationApi) SetConversations

func (o *ConversationApi) SetConversations(c *gin.Context)

type FriendApi

type FriendApi rpcclient.Friend

func NewFriendApi

func NewFriendApi(client rpcclient.Friend) FriendApi

func (*FriendApi) AddBlack

func (o *FriendApi) AddBlack(c *gin.Context)

func (*FriendApi) ApplyToAddFriend

func (o *FriendApi) ApplyToAddFriend(c *gin.Context)

func (*FriendApi) DeleteFriend

func (o *FriendApi) DeleteFriend(c *gin.Context)

func (*FriendApi) GetDesignatedFriends

func (o *FriendApi) GetDesignatedFriends(c *gin.Context)

func (*FriendApi) GetDesignatedFriendsApply

func (o *FriendApi) GetDesignatedFriendsApply(c *gin.Context)

func (*FriendApi) GetFriendApplyList

func (o *FriendApi) GetFriendApplyList(c *gin.Context)

func (*FriendApi) GetFriendIDs

func (o *FriendApi) GetFriendIDs(c *gin.Context)

func (*FriendApi) GetFriendList

func (o *FriendApi) GetFriendList(c *gin.Context)

func (*FriendApi) GetPaginationBlacks

func (o *FriendApi) GetPaginationBlacks(c *gin.Context)

func (*FriendApi) GetSelfApplyList

func (o *FriendApi) GetSelfApplyList(c *gin.Context)

func (*FriendApi) GetSpecifiedFriendsInfo

func (o *FriendApi) GetSpecifiedFriendsInfo(c *gin.Context)

func (*FriendApi) ImportFriends

func (o *FriendApi) ImportFriends(c *gin.Context)

func (*FriendApi) IsFriend

func (o *FriendApi) IsFriend(c *gin.Context)

func (*FriendApi) RemoveBlack

func (o *FriendApi) RemoveBlack(c *gin.Context)

func (*FriendApi) RespondFriendApply

func (o *FriendApi) RespondFriendApply(c *gin.Context)

func (*FriendApi) SetFriendRemark

func (o *FriendApi) SetFriendRemark(c *gin.Context)

type GroupApi

type GroupApi rpcclient.Group

func NewGroupApi

func NewGroupApi(client rpcclient.Group) GroupApi

func (*GroupApi) ApplicationGroupResponse

func (o *GroupApi) ApplicationGroupResponse(c *gin.Context)

func (*GroupApi) CancelMuteGroup

func (o *GroupApi) CancelMuteGroup(c *gin.Context)

func (*GroupApi) CancelMuteGroupMember

func (o *GroupApi) CancelMuteGroupMember(c *gin.Context)

func (*GroupApi) CreateGroup

func (o *GroupApi) CreateGroup(c *gin.Context)

func (*GroupApi) DismissGroup

func (o *GroupApi) DismissGroup(c *gin.Context)

func (*GroupApi) GetGroupAbstractInfo

func (o *GroupApi) GetGroupAbstractInfo(c *gin.Context)

func (*GroupApi) GetGroupMemberList

func (o *GroupApi) GetGroupMemberList(c *gin.Context)

func (*GroupApi) GetGroupMemberUserIDs

func (o *GroupApi) GetGroupMemberUserIDs(c *gin.Context)

func (*GroupApi) GetGroupMembersInfo

func (o *GroupApi) GetGroupMembersInfo(c *gin.Context)

func (*GroupApi) GetGroupUsersReqApplicationList

func (o *GroupApi) GetGroupUsersReqApplicationList(c *gin.Context)

func (*GroupApi) GetGroups

func (o *GroupApi) GetGroups(c *gin.Context)

func (*GroupApi) GetGroupsInfo

func (o *GroupApi) GetGroupsInfo(c *gin.Context)

func (*GroupApi) GetJoinedGroupList

func (o *GroupApi) GetJoinedGroupList(c *gin.Context)

func (*GroupApi) GetJoinedSuperGroupList

func (o *GroupApi) GetJoinedSuperGroupList(c *gin.Context)

func (*GroupApi) GetRecvGroupApplicationList

func (o *GroupApi) GetRecvGroupApplicationList(c *gin.Context)

func (*GroupApi) GetSuperGroupsInfo

func (o *GroupApi) GetSuperGroupsInfo(c *gin.Context)

func (*GroupApi) GetUserReqGroupApplicationList

func (o *GroupApi) GetUserReqGroupApplicationList(c *gin.Context)

func (*GroupApi) GroupCreateCount

func (o *GroupApi) GroupCreateCount(c *gin.Context)

func (*GroupApi) InviteUserToGroup

func (o *GroupApi) InviteUserToGroup(c *gin.Context)

func (*GroupApi) JoinGroup

func (o *GroupApi) JoinGroup(c *gin.Context)

func (*GroupApi) KickGroupMember

func (o *GroupApi) KickGroupMember(c *gin.Context)

func (*GroupApi) MuteGroup

func (o *GroupApi) MuteGroup(c *gin.Context)

func (*GroupApi) MuteGroupMember

func (o *GroupApi) MuteGroupMember(c *gin.Context)

func (*GroupApi) QuitGroup

func (o *GroupApi) QuitGroup(c *gin.Context)

func (*GroupApi) SetGroupInfo

func (o *GroupApi) SetGroupInfo(c *gin.Context)

func (*GroupApi) SetGroupMemberInfo

func (o *GroupApi) SetGroupMemberInfo(c *gin.Context)

func (*GroupApi) TransferGroupOwner

func (o *GroupApi) TransferGroupOwner(c *gin.Context)

type MessageApi

type MessageApi struct {
	*rpcclient.Message
	// contains filtered or unexported fields
}

func NewMessageApi

func NewMessageApi(msgRpcClient *rpcclient.Message, userRpcClient *rpcclient.User) MessageApi

func (*MessageApi) BatchSendMsg

func (m *MessageApi) BatchSendMsg(c *gin.Context)

func (*MessageApi) CheckMsgIsSendSuccess

func (m *MessageApi) CheckMsgIsSendSuccess(c *gin.Context)

func (*MessageApi) ClearConversationsMsg

func (m *MessageApi) ClearConversationsMsg(c *gin.Context)

func (*MessageApi) DeleteMsgPhysical

func (m *MessageApi) DeleteMsgPhysical(c *gin.Context)

func (*MessageApi) DeleteMsgPhysicalBySeq

func (m *MessageApi) DeleteMsgPhysicalBySeq(c *gin.Context)

func (*MessageApi) DeleteMsgs

func (m *MessageApi) DeleteMsgs(c *gin.Context)

func (*MessageApi) GetActiveGroup

func (m *MessageApi) GetActiveGroup(c *gin.Context)

func (*MessageApi) GetActiveUser

func (m *MessageApi) GetActiveUser(c *gin.Context)

func (*MessageApi) GetConversationsHasReadAndMaxSeq

func (m *MessageApi) GetConversationsHasReadAndMaxSeq(c *gin.Context)

func (*MessageApi) GetSeq

func (m *MessageApi) GetSeq(c *gin.Context)

func (*MessageApi) GetServerTime

func (m *MessageApi) GetServerTime(c *gin.Context)

func (*MessageApi) GetUsersOnlineStatus

func (m *MessageApi) GetUsersOnlineStatus(c *gin.Context)

func (*MessageApi) MarkConversationAsRead

func (m *MessageApi) MarkConversationAsRead(c *gin.Context)

func (*MessageApi) MarkMsgsAsRead

func (m *MessageApi) MarkMsgsAsRead(c *gin.Context)

func (*MessageApi) PullMsgBySeqs

func (m *MessageApi) PullMsgBySeqs(c *gin.Context)

func (*MessageApi) RevokeMsg

func (m *MessageApi) RevokeMsg(c *gin.Context)

func (*MessageApi) SearchMsg

func (m *MessageApi) SearchMsg(c *gin.Context)

func (*MessageApi) SendBusinessNotification

func (m *MessageApi) SendBusinessNotification(c *gin.Context)

func (*MessageApi) SendMessage

func (m *MessageApi) SendMessage(c *gin.Context)

func (*MessageApi) SetConversationHasReadSeq

func (m *MessageApi) SetConversationHasReadSeq(c *gin.Context)

func (MessageApi) SetOptions

func (MessageApi) SetOptions(options map[string]bool, value bool)

func (*MessageApi) UserClearAllMsg

func (m *MessageApi) UserClearAllMsg(c *gin.Context)

type StatisticsApi

type StatisticsApi rpcclient.User

func NewStatisticsApi

func NewStatisticsApi(client rpcclient.User) StatisticsApi

func (*StatisticsApi) UserRegister

func (s *StatisticsApi) UserRegister(c *gin.Context)

type ThirdApi

type ThirdApi rpcclient.Third

func NewThirdApi

func NewThirdApi(client rpcclient.Third) ThirdApi

func (*ThirdApi) AccessURL

func (o *ThirdApi) AccessURL(c *gin.Context)

func (*ThirdApi) AuthSign

func (o *ThirdApi) AuthSign(c *gin.Context)

func (*ThirdApi) CompleteMultipartUpload

func (o *ThirdApi) CompleteMultipartUpload(c *gin.Context)

func (*ThirdApi) FcmUpdateToken

func (o *ThirdApi) FcmUpdateToken(c *gin.Context)

func (*ThirdApi) InitiateMultipartUpload

func (o *ThirdApi) InitiateMultipartUpload(c *gin.Context)

func (*ThirdApi) ObjectRedirect

func (o *ThirdApi) ObjectRedirect(c *gin.Context)

func (*ThirdApi) PartLimit

func (o *ThirdApi) PartLimit(c *gin.Context)

func (*ThirdApi) PartSize

func (o *ThirdApi) PartSize(c *gin.Context)

func (*ThirdApi) SetAppBadge

func (o *ThirdApi) SetAppBadge(c *gin.Context)

type UserApi

type UserApi rpcclient.User

func NewUserApi

func NewUserApi(client rpcclient.User) UserApi

func (*UserApi) AccountCheck

func (u *UserApi) AccountCheck(c *gin.Context)

func (*UserApi) GetAllUsersID

func (u *UserApi) GetAllUsersID(c *gin.Context)

func (*UserApi) GetSubscribeUsersStatus

func (u *UserApi) GetSubscribeUsersStatus(c *gin.Context)

GetSubscribeUsersStatus Get the online status of subscribers.

func (*UserApi) GetUserStatus

func (u *UserApi) GetUserStatus(c *gin.Context)

GetUserStatus Get the online status of the user.

func (*UserApi) GetUsers

func (u *UserApi) GetUsers(c *gin.Context)

func (*UserApi) GetUsersOnlineStatus

func (u *UserApi) GetUsersOnlineStatus(c *gin.Context)

GetUsersOnlineStatus Get user online status.

func (*UserApi) GetUsersOnlineTokenDetail

func (u *UserApi) GetUsersOnlineTokenDetail(c *gin.Context)

GetUsersOnlineTokenDetail Get user online token details.

func (*UserApi) GetUsersPublicInfo

func (u *UserApi) GetUsersPublicInfo(c *gin.Context)

func (*UserApi) SetGlobalRecvMessageOpt

func (u *UserApi) SetGlobalRecvMessageOpt(c *gin.Context)

func (*UserApi) SubscriberStatus

func (u *UserApi) SubscriberStatus(c *gin.Context)

SubscriberStatus Presence status of subscribed users.

func (*UserApi) UnSubscriberStatus

func (u *UserApi) UnSubscriberStatus(c *gin.Context)

UnSubscriberStatus Unsubscribe a user's presence.

func (*UserApi) UpdateUserInfo

func (u *UserApi) UpdateUserInfo(c *gin.Context)

func (*UserApi) UserRegister

func (u *UserApi) UserRegister(c *gin.Context)

func (*UserApi) UserRegisterCount

func (u *UserApi) UserRegisterCount(c *gin.Context)

Jump to

Keyboard shortcuts

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