Documentation ¶
Index ¶
- Constants
- Variables
- func GinParseToken(authRPC *rpcclient.Auth) gin.HandlerFunc
- func RequiredIf(fl validator.FieldLevel) bool
- func Start(ctx context.Context, index int, config *Config) error
- type AuthApi
- type Config
- type ConversationApi
- func (o *ConversationApi) GetAllConversations(c *gin.Context)
- func (o *ConversationApi) GetConversation(c *gin.Context)
- func (o *ConversationApi) GetConversationOfflinePushUserIDs(c *gin.Context)
- func (o *ConversationApi) GetConversations(c *gin.Context)
- func (o *ConversationApi) GetFullOwnerConversationIDs(c *gin.Context)
- func (o *ConversationApi) GetIncrementalConversation(c *gin.Context)
- func (o *ConversationApi) GetNotNotifyConversationIDs(c *gin.Context)
- func (o *ConversationApi) GetOwnerConversation(c *gin.Context)
- func (o *ConversationApi) GetPinnedConversationIDs(c *gin.Context)
- func (o *ConversationApi) GetSortedConversationList(c *gin.Context)
- func (o *ConversationApi) SetConversations(c *gin.Context)
- type FriendApi
- func (o *FriendApi) AddBlack(c *gin.Context)
- func (o *FriendApi) ApplyToAddFriend(c *gin.Context)
- func (o *FriendApi) DeleteFriend(c *gin.Context)
- func (o *FriendApi) GetDesignatedFriends(c *gin.Context)
- func (o *FriendApi) GetDesignatedFriendsApply(c *gin.Context)
- func (o *FriendApi) GetFriendApplyList(c *gin.Context)
- func (o *FriendApi) GetFriendIDs(c *gin.Context)
- func (o *FriendApi) GetFriendList(c *gin.Context)
- func (o *FriendApi) GetFullFriendUserIDs(c *gin.Context)
- func (o *FriendApi) GetIncrementalBlacks(c *gin.Context)
- func (o *FriendApi) GetIncrementalFriends(c *gin.Context)
- func (o *FriendApi) GetPaginationBlacks(c *gin.Context)
- func (o *FriendApi) GetSelfApplyList(c *gin.Context)
- func (o *FriendApi) GetSpecifiedBlacks(c *gin.Context)
- func (o *FriendApi) GetSpecifiedFriendsInfo(c *gin.Context)
- func (o *FriendApi) ImportFriends(c *gin.Context)
- func (o *FriendApi) IsFriend(c *gin.Context)
- func (o *FriendApi) RemoveBlack(c *gin.Context)
- func (o *FriendApi) RespondFriendApply(c *gin.Context)
- func (o *FriendApi) SetFriendRemark(c *gin.Context)
- func (o *FriendApi) UpdateFriends(c *gin.Context)
- type GroupApi
- func (o *GroupApi) ApplicationGroupResponse(c *gin.Context)
- func (o *GroupApi) CancelMuteGroup(c *gin.Context)
- func (o *GroupApi) CancelMuteGroupMember(c *gin.Context)
- func (o *GroupApi) CreateGroup(c *gin.Context)
- func (o *GroupApi) DismissGroup(c *gin.Context)
- func (o *GroupApi) GetFullGroupMemberUserIDs(c *gin.Context)
- func (o *GroupApi) GetFullJoinGroupIDs(c *gin.Context)
- func (o *GroupApi) GetGroupAbstractInfo(c *gin.Context)
- func (o *GroupApi) GetGroupMemberList(c *gin.Context)
- func (o *GroupApi) GetGroupMemberUserIDs(c *gin.Context)
- func (o *GroupApi) GetGroupMembersInfo(c *gin.Context)
- func (o *GroupApi) GetGroupUsersReqApplicationList(c *gin.Context)
- func (o *GroupApi) GetGroups(c *gin.Context)
- func (o *GroupApi) GetGroupsInfo(c *gin.Context)
- func (o *GroupApi) GetIncrementalGroupMember(c *gin.Context)
- func (o *GroupApi) GetIncrementalGroupMemberBatch(c *gin.Context)
- func (o *GroupApi) GetIncrementalJoinGroup(c *gin.Context)
- func (o *GroupApi) GetJoinedGroupList(c *gin.Context)
- func (o *GroupApi) GetRecvGroupApplicationList(c *gin.Context)
- func (o *GroupApi) GetSpecifiedUserGroupRequestInfo(c *gin.Context)
- func (o *GroupApi) GetUserReqGroupApplicationList(c *gin.Context)
- func (o *GroupApi) GroupCreateCount(c *gin.Context)
- func (o *GroupApi) InviteUserToGroup(c *gin.Context)
- func (o *GroupApi) JoinGroup(c *gin.Context)
- func (o *GroupApi) KickGroupMember(c *gin.Context)
- func (o *GroupApi) MuteGroup(c *gin.Context)
- func (o *GroupApi) MuteGroupMember(c *gin.Context)
- func (o *GroupApi) QuitGroup(c *gin.Context)
- func (o *GroupApi) SetGroupInfo(c *gin.Context)
- func (o *GroupApi) SetGroupInfoEx(c *gin.Context)
- func (o *GroupApi) SetGroupMemberInfo(c *gin.Context)
- func (o *GroupApi) TransferGroupOwner(c *gin.Context)
- type MessageApi
- func (m *MessageApi) BatchSendMsg(c *gin.Context)
- func (m *MessageApi) CheckMsgIsSendSuccess(c *gin.Context)
- func (m *MessageApi) ClearConversationsMsg(c *gin.Context)
- func (m *MessageApi) DeleteMsgPhysical(c *gin.Context)
- func (m *MessageApi) DeleteMsgPhysicalBySeq(c *gin.Context)
- func (m *MessageApi) DeleteMsgs(c *gin.Context)
- func (m *MessageApi) GetActiveGroup(c *gin.Context)
- func (m *MessageApi) GetActiveUser(c *gin.Context)
- func (m *MessageApi) GetConversationsHasReadAndMaxSeq(c *gin.Context)
- func (m *MessageApi) GetSeq(c *gin.Context)
- func (m *MessageApi) GetServerTime(c *gin.Context)
- func (m *MessageApi) GetUsersOnlineStatus(c *gin.Context)
- func (m *MessageApi) MarkConversationAsRead(c *gin.Context)
- func (m *MessageApi) MarkMsgsAsRead(c *gin.Context)
- func (m *MessageApi) PullMsgBySeqs(c *gin.Context)
- func (m *MessageApi) RevokeMsg(c *gin.Context)
- func (m *MessageApi) SearchMsg(c *gin.Context)
- func (m *MessageApi) SendBusinessNotification(c *gin.Context)
- func (m *MessageApi) SendMessage(c *gin.Context)
- func (m *MessageApi) SetConversationHasReadSeq(c *gin.Context)
- func (*MessageApi) SetOptions(options map[string]bool, value bool)
- func (m *MessageApi) UserClearAllMsg(c *gin.Context)
- type StatisticsApi
- type ThirdApi
- func (o *ThirdApi) AccessURL(c *gin.Context)
- func (o *ThirdApi) AuthSign(c *gin.Context)
- func (o *ThirdApi) CompleteFormData(c *gin.Context)
- func (o *ThirdApi) CompleteMultipartUpload(c *gin.Context)
- func (o *ThirdApi) DeleteLogs(c *gin.Context)
- func (o *ThirdApi) FcmUpdateToken(c *gin.Context)
- func (o *ThirdApi) GetPrometheus(c *gin.Context)
- func (o *ThirdApi) InitiateFormData(c *gin.Context)
- func (o *ThirdApi) InitiateMultipartUpload(c *gin.Context)
- func (o *ThirdApi) ObjectRedirect(c *gin.Context)
- func (o *ThirdApi) PartLimit(c *gin.Context)
- func (o *ThirdApi) PartSize(c *gin.Context)
- func (o *ThirdApi) SearchLogs(c *gin.Context)
- func (o *ThirdApi) SetAppBadge(c *gin.Context)
- func (o *ThirdApi) UploadLogs(c *gin.Context)
- type UserApi
- func (u *UserApi) AccountCheck(c *gin.Context)
- func (u *UserApi) AddNotificationAccount(c *gin.Context)
- func (u *UserApi) GetAllUsersID(c *gin.Context)
- func (u *UserApi) GetSubscribeUsersStatus(c *gin.Context)
- func (u *UserApi) GetUserStatus(c *gin.Context)
- func (u *UserApi) GetUsers(c *gin.Context)
- func (u *UserApi) GetUsersOnlineStatus(c *gin.Context)
- func (u *UserApi) GetUsersOnlineTokenDetail(c *gin.Context)
- func (u *UserApi) GetUsersPublicInfo(c *gin.Context)
- func (u *UserApi) ProcessUserCommandAdd(c *gin.Context)
- func (u *UserApi) ProcessUserCommandDelete(c *gin.Context)
- func (u *UserApi) ProcessUserCommandGet(c *gin.Context)
- func (u *UserApi) ProcessUserCommandGetAll(c *gin.Context)
- func (u *UserApi) ProcessUserCommandUpdate(c *gin.Context)
- func (u *UserApi) SearchNotificationAccount(c *gin.Context)
- func (u *UserApi) SetGlobalRecvMessageOpt(c *gin.Context)
- func (u *UserApi) SubscriberStatus(c *gin.Context)
- func (u *UserApi) UpdateNotificationAccountInfo(c *gin.Context)
- func (u *UserApi) UpdateUserInfo(c *gin.Context)
- func (u *UserApi) UpdateUserInfoEx(c *gin.Context)
- func (u *UserApi) UserRegister(c *gin.Context)
- func (u *UserApi) UserRegisterCount(c *gin.Context)
Constants ¶
const ( NoCompression = -1 DefaultCompression = 0 BestCompression = 1 BestSpeed = 2 )
Variables ¶
var Whitelist = []string{
"/auth/get_admin_token",
"/auth/parse_token",
}
Whitelist api not parse token
Functions ¶
func GinParseToken ¶
func GinParseToken(authRPC *rpcclient.Auth) gin.HandlerFunc
func RequiredIf ¶
func RequiredIf(fl validator.FieldLevel) bool
RequiredIf validates if the specified field is required based on the session type.
Types ¶
type AuthApi ¶
func NewAuthApi ¶
func (*AuthApi) ForceLogout ¶
func (*AuthApi) GetAdminToken ¶ added in v3.8.1
func (*AuthApi) GetUserToken ¶ added in v3.6.0
func (*AuthApi) ParseToken ¶
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) GetConversationOfflinePushUserIDs ¶ added in v3.3.2
func (o *ConversationApi) GetConversationOfflinePushUserIDs(c *gin.Context)
func (*ConversationApi) GetConversations ¶
func (o *ConversationApi) GetConversations(c *gin.Context)
func (*ConversationApi) GetFullOwnerConversationIDs ¶ added in v3.8.0
func (o *ConversationApi) GetFullOwnerConversationIDs(c *gin.Context)
func (*ConversationApi) GetIncrementalConversation ¶ added in v3.8.0
func (o *ConversationApi) GetIncrementalConversation(c *gin.Context)
func (*ConversationApi) GetNotNotifyConversationIDs ¶ added in v3.8.1
func (o *ConversationApi) GetNotNotifyConversationIDs(c *gin.Context)
func (*ConversationApi) GetOwnerConversation ¶ added in v3.8.0
func (o *ConversationApi) GetOwnerConversation(c *gin.Context)
func (*ConversationApi) GetPinnedConversationIDs ¶ added in v3.8.1
func (o *ConversationApi) GetPinnedConversationIDs(c *gin.Context)
func (*ConversationApi) GetSortedConversationList ¶ added in v3.6.0
func (o *ConversationApi) GetSortedConversationList(c *gin.Context)
func (*ConversationApi) SetConversations ¶
func (o *ConversationApi) SetConversations(c *gin.Context)
type FriendApi ¶
func NewFriendApi ¶
func (*FriendApi) ApplyToAddFriend ¶
func (*FriendApi) DeleteFriend ¶
func (*FriendApi) GetDesignatedFriends ¶
func (*FriendApi) GetDesignatedFriendsApply ¶
func (*FriendApi) GetFriendApplyList ¶
func (*FriendApi) GetFriendIDs ¶
func (*FriendApi) GetFriendList ¶
func (*FriendApi) GetFullFriendUserIDs ¶ added in v3.8.0
func (*FriendApi) GetIncrementalBlacks ¶ added in v3.8.0
GetIncrementalBlacks is temporarily unused. Deprecated: This function is currently unused and may be removed in future versions.
func (*FriendApi) GetIncrementalFriends ¶ added in v3.8.0
func (*FriendApi) GetPaginationBlacks ¶
func (*FriendApi) GetSelfApplyList ¶
func (*FriendApi) GetSpecifiedBlacks ¶ added in v3.8.1
func (*FriendApi) GetSpecifiedFriendsInfo ¶
func (*FriendApi) ImportFriends ¶
func (*FriendApi) RemoveBlack ¶
func (*FriendApi) RespondFriendApply ¶
func (*FriendApi) SetFriendRemark ¶
func (*FriendApi) UpdateFriends ¶ added in v3.5.0
type GroupApi ¶
func NewGroupApi ¶
func (*GroupApi) ApplicationGroupResponse ¶
func (*GroupApi) CancelMuteGroup ¶
func (*GroupApi) CancelMuteGroupMember ¶
func (*GroupApi) CreateGroup ¶
func (*GroupApi) DismissGroup ¶
func (*GroupApi) GetFullGroupMemberUserIDs ¶ added in v3.8.0
func (*GroupApi) GetFullJoinGroupIDs ¶ added in v3.8.0
func (*GroupApi) GetGroupAbstractInfo ¶
func (*GroupApi) GetGroupMemberList ¶
func (*GroupApi) GetGroupMemberUserIDs ¶
func (*GroupApi) GetGroupMembersInfo ¶
func (*GroupApi) GetGroupUsersReqApplicationList ¶
func (*GroupApi) GetGroupsInfo ¶
func (*GroupApi) GetIncrementalGroupMember ¶ added in v3.8.0
func (*GroupApi) GetIncrementalGroupMemberBatch ¶ added in v3.8.0
func (*GroupApi) GetIncrementalJoinGroup ¶ added in v3.8.0
func (*GroupApi) GetJoinedGroupList ¶
func (*GroupApi) GetRecvGroupApplicationList ¶
func (*GroupApi) GetSpecifiedUserGroupRequestInfo ¶ added in v3.8.1
func (*GroupApi) GetUserReqGroupApplicationList ¶
func (*GroupApi) GroupCreateCount ¶
func (*GroupApi) InviteUserToGroup ¶
func (*GroupApi) KickGroupMember ¶
func (*GroupApi) MuteGroupMember ¶
func (*GroupApi) SetGroupInfo ¶
func (*GroupApi) SetGroupInfoEx ¶ added in v3.8.1
func (*GroupApi) SetGroupMemberInfo ¶
func (*GroupApi) TransferGroupOwner ¶
type MessageApi ¶
func NewMessageApi ¶
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)
SendMessage handles the sending of a message. It's an HTTP handler function to be used with Gin framework.
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 ¶
func NewStatisticsApi ¶
func NewStatisticsApi(client rpcclient.User) StatisticsApi
func (*StatisticsApi) UserRegister ¶
func (s *StatisticsApi) UserRegister(c *gin.Context)
type ThirdApi ¶
func NewThirdApi ¶
func (*ThirdApi) CompleteFormData ¶ added in v3.5.0
func (*ThirdApi) CompleteMultipartUpload ¶
func (*ThirdApi) DeleteLogs ¶ added in v3.3.2
func (*ThirdApi) FcmUpdateToken ¶
func (*ThirdApi) GetPrometheus ¶ added in v3.6.0
func (*ThirdApi) InitiateFormData ¶ added in v3.5.0
func (*ThirdApi) InitiateMultipartUpload ¶
func (*ThirdApi) ObjectRedirect ¶
func (*ThirdApi) SearchLogs ¶ added in v3.3.2
func (*ThirdApi) SetAppBadge ¶
func (*ThirdApi) UploadLogs ¶ added in v3.3.2
#################### logs ####################.
type UserApi ¶
func NewUserApi ¶
func (*UserApi) AccountCheck ¶
func (*UserApi) AddNotificationAccount ¶ added in v3.5.0
func (*UserApi) GetAllUsersID ¶
func (*UserApi) GetSubscribeUsersStatus ¶
GetSubscribeUsersStatus Get the online status of subscribers.
func (*UserApi) GetUserStatus ¶
GetUserStatus Get the online status of the user.
func (*UserApi) GetUsersOnlineStatus ¶
GetUsersOnlineStatus Get user online status.
func (*UserApi) GetUsersOnlineTokenDetail ¶
GetUsersOnlineTokenDetail Get user online token details.
func (*UserApi) GetUsersPublicInfo ¶
func (*UserApi) ProcessUserCommandAdd ¶ added in v3.5.0
ProcessUserCommandAdd user general function add.
func (*UserApi) ProcessUserCommandDelete ¶ added in v3.5.0
ProcessUserCommandDelete user general function delete.
func (*UserApi) ProcessUserCommandGet ¶ added in v3.5.0
ProcessUserCommandGet user general function get.
func (*UserApi) ProcessUserCommandGetAll ¶ added in v3.6.0
ProcessUserCommandGet user general function get all.
func (*UserApi) ProcessUserCommandUpdate ¶ added in v3.5.0
ProcessUserCommandUpdate user general function update.
func (*UserApi) SearchNotificationAccount ¶ added in v3.5.0
func (*UserApi) SetGlobalRecvMessageOpt ¶
func (*UserApi) SubscriberStatus ¶
SubscriberStatus Presence status of subscribed users.
func (*UserApi) UpdateNotificationAccountInfo ¶ added in v3.5.0
func (*UserApi) UpdateUserInfo ¶
UpdateUserInfo is deprecated. Use UpdateUserInfoEx