Documentation ¶
Index ¶
- type AuthClient
- type ConversationClient
- func (x *ConversationClient) CreateGroupChatConversations(ctx context.Context, groupID string, userIDs []string) error
- func (x *ConversationClient) CreateSingleChatConversations(ctx context.Context, req *conversation.CreateSingleChatConversationsReq) error
- func (x *ConversationClient) GetConversation(ctx context.Context, conversationID string, ownerUserID string) (*conversation.Conversation, error)
- func (x *ConversationClient) GetConversationIDs(ctx context.Context, ownerUserID string) ([]string, error)
- func (x *ConversationClient) GetConversationOfflinePushUserIDs(ctx context.Context, conversationID string, userIDs []string) ([]string, error)
- func (x *ConversationClient) GetConversations(ctx context.Context, conversationIDs []string, ownerUserID string) ([]*conversation.Conversation, error)
- func (x *ConversationClient) GetConversationsByConversationID(ctx context.Context, conversationID string) (*conversation.Conversation, error)
- func (x *ConversationClient) GetConversationsByConversationIDs(ctx context.Context, conversationIDs []string) ([]*conversation.Conversation, error)
- func (x *ConversationClient) GetPinnedConversationIDs(ctx context.Context, ownerUserID string) ([]string, error)
- func (x *ConversationClient) SetConversationMaxSeq(ctx context.Context, conversationID string, ownerUserIDs []string, ...) error
- func (x *ConversationClient) SetConversationMinSeq(ctx context.Context, conversationID string, ownerUserIDs []string, ...) error
- func (x *ConversationClient) SetConversations(ctx context.Context, ownerUserIDs []string, info *conversation.ConversationReq) error
- type GroupClient
- func (x *GroupClient) DismissGroup(ctx context.Context, groupID string, deleteMember bool) error
- func (x *GroupClient) GetGroupInfo(ctx context.Context, groupID string) (*sdkws.GroupInfo, error)
- func (x *GroupClient) GetGroupInfoCache(ctx context.Context, groupID string) (*sdkws.GroupInfo, error)
- func (x *GroupClient) GetGroupMemberCache(ctx context.Context, groupID string, userID string) (*sdkws.GroupMemberFullInfo, error)
- func (x *GroupClient) GetGroupMemberInfo(ctx context.Context, groupID string, userID string) (*sdkws.GroupMemberFullInfo, error)
- func (x *GroupClient) GetGroupMemberMapInfo(ctx context.Context, groupID string, userIDs []string) (map[string]*sdkws.GroupMemberFullInfo, error)
- func (x *GroupClient) GetGroupMemberUserIDs(ctx context.Context, groupID string) ([]string, error)
- func (x *GroupClient) GetGroupMembersInfo(ctx context.Context, groupID string, userIDs []string) ([]*sdkws.GroupMemberFullInfo, error)
- func (x *GroupClient) GetGroupsInfo(ctx context.Context, groupIDs []string) ([]*sdkws.GroupInfo, error)
- type MsgClient
- func (x *MsgClient) GetActiveConversation(ctx context.Context, conversationIDs []string) ([]*msg.ActiveConversation, error)
- func (x *MsgClient) GetConversationMaxSeq(ctx context.Context, conversationID string) (int64, error)
- func (x *MsgClient) GetHasReadSeqs(ctx context.Context, conversationIDs []string, userID string) (map[string]int64, error)
- func (x *MsgClient) GetLastMessageSeqByTime(ctx context.Context, conversationID string, lastTime int64) (int64, error)
- func (x *MsgClient) GetMaxSeqs(ctx context.Context, conversationIDs []string) (map[string]int64, error)
- func (x *MsgClient) GetMsgByConversationIDs(ctx context.Context, conversationIDs []string, maxSeqs map[string]int64) (map[string]*sdkws.MsgData, error)
- func (x *MsgClient) GetSeqMessage(ctx context.Context, userID string, conversations []*msg.ConversationSeqs) (map[string]*sdkws.PullMsgs, error)
- func (x *MsgClient) SetUserConversationMaxSeq(ctx context.Context, conversationID string, ownerUserIDs []string, ...) error
- func (x *MsgClient) SetUserConversationMin(ctx context.Context, conversationID string, ownerUserIDs []string, ...) error
- func (x *MsgClient) SetUserConversationsMinSeq(ctx context.Context, conversationID string, userIDs []string, seq int64) error
- type MsgGatewayClient
- type PushMsgServiceClient
- type RelationClient
- type RtcServiceClient
- type ThirdClient
- type UserClient
- func (x *UserClient) CheckUser(ctx context.Context, userIDs []string) error
- func (x *UserClient) GetAllOnlineUsers(ctx context.Context, cursor uint64) (*user.GetAllOnlineUsersResp, error)
- func (x *UserClient) GetAllUserIDs(ctx context.Context, pageNumber, showNumber int32) ([]string, error)
- func (x *UserClient) GetNotificationByID(ctx context.Context, userID string) error
- func (x *UserClient) GetUserInfo(ctx context.Context, userID string) (*sdkws.UserInfo, error)
- func (x *UserClient) GetUserOnlinePlatform(ctx context.Context, userID string) ([]int32, error)
- func (x *UserClient) GetUsersInfo(ctx context.Context, userIDs []string) ([]*sdkws.UserInfo, error)
- func (x *UserClient) GetUsersInfoMap(ctx context.Context, userIDs []string) (map[string]*sdkws.UserInfo, error)
- func (x *UserClient) GetUsersOnlinePlatform(ctx context.Context, userIDs []string) ([]*user.OnlineStatus, error)
- func (x *UserClient) SetUserOnlineStatus(ctx context.Context, req *user.SetUserOnlineStatusReq) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClient ¶
type AuthClient struct {
auth.AuthClient
}
func NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) *AuthClient
func (*AuthClient) InvalidateToken ¶
func (x *AuthClient) InvalidateToken(ctx context.Context, req *auth.InvalidateTokenReq) error
func (*AuthClient) KickTokens ¶
func (x *AuthClient) KickTokens(ctx context.Context, tokens []string) error
func (*AuthClient) ParseToken ¶
func (x *AuthClient) ParseToken(ctx context.Context, token string) (*auth.ParseTokenResp, error)
type ConversationClient ¶
type ConversationClient struct {
conversation.ConversationClient
}
func NewConversationClient ¶
func NewConversationClient(cc grpc.ClientConnInterface) *ConversationClient
func (*ConversationClient) CreateGroupChatConversations ¶
func (*ConversationClient) CreateSingleChatConversations ¶
func (x *ConversationClient) CreateSingleChatConversations(ctx context.Context, req *conversation.CreateSingleChatConversationsReq) error
func (*ConversationClient) GetConversation ¶
func (x *ConversationClient) GetConversation(ctx context.Context, conversationID string, ownerUserID string) (*conversation.Conversation, error)
func (*ConversationClient) GetConversationIDs ¶
func (*ConversationClient) GetConversationOfflinePushUserIDs ¶
func (*ConversationClient) GetConversations ¶
func (x *ConversationClient) GetConversations(ctx context.Context, conversationIDs []string, ownerUserID string) ([]*conversation.Conversation, error)
func (*ConversationClient) GetConversationsByConversationID ¶
func (x *ConversationClient) GetConversationsByConversationID(ctx context.Context, conversationID string) (*conversation.Conversation, error)
func (*ConversationClient) GetConversationsByConversationIDs ¶
func (x *ConversationClient) GetConversationsByConversationIDs(ctx context.Context, conversationIDs []string) ([]*conversation.Conversation, error)
func (*ConversationClient) GetPinnedConversationIDs ¶
func (*ConversationClient) SetConversationMaxSeq ¶
func (*ConversationClient) SetConversationMinSeq ¶
func (*ConversationClient) SetConversations ¶
func (x *ConversationClient) SetConversations(ctx context.Context, ownerUserIDs []string, info *conversation.ConversationReq) error
type GroupClient ¶
type GroupClient struct {
group.GroupClient
}
func NewGroupClient ¶
func NewGroupClient(cc grpc.ClientConnInterface) *GroupClient
func (*GroupClient) DismissGroup ¶
func (*GroupClient) GetGroupInfo ¶
func (*GroupClient) GetGroupInfoCache ¶
func (*GroupClient) GetGroupMemberCache ¶
func (x *GroupClient) GetGroupMemberCache(ctx context.Context, groupID string, userID string) (*sdkws.GroupMemberFullInfo, error)
func (*GroupClient) GetGroupMemberInfo ¶
func (x *GroupClient) GetGroupMemberInfo(ctx context.Context, groupID string, userID string) (*sdkws.GroupMemberFullInfo, error)
func (*GroupClient) GetGroupMemberMapInfo ¶
func (x *GroupClient) GetGroupMemberMapInfo(ctx context.Context, groupID string, userIDs []string) (map[string]*sdkws.GroupMemberFullInfo, error)
func (*GroupClient) GetGroupMemberUserIDs ¶
func (*GroupClient) GetGroupMembersInfo ¶
func (x *GroupClient) GetGroupMembersInfo(ctx context.Context, groupID string, userIDs []string) ([]*sdkws.GroupMemberFullInfo, error)
func (*GroupClient) GetGroupsInfo ¶
type MsgClient ¶
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) *MsgClient
func (*MsgClient) GetActiveConversation ¶
func (*MsgClient) GetConversationMaxSeq ¶
func (*MsgClient) GetHasReadSeqs ¶
func (*MsgClient) GetLastMessageSeqByTime ¶
func (*MsgClient) GetMaxSeqs ¶
func (*MsgClient) GetMsgByConversationIDs ¶
func (*MsgClient) GetSeqMessage ¶
func (*MsgClient) SetUserConversationMaxSeq ¶
func (*MsgClient) SetUserConversationMin ¶
type MsgGatewayClient ¶
type MsgGatewayClient struct {
msggateway.MsgGatewayClient
}
func NewMsgGatewayClient ¶
func NewMsgGatewayClient(cc grpc.ClientConnInterface) *MsgGatewayClient
type PushMsgServiceClient ¶
type PushMsgServiceClient struct {
push.PushMsgServiceClient
}
func NewPushMsgServiceClient ¶
func NewPushMsgServiceClient(cc grpc.ClientConnInterface) *PushMsgServiceClient
type RelationClient ¶
type RelationClient struct {
relation.FriendClient
}
func NewRelationClient ¶
func NewRelationClient(cc grpc.ClientConnInterface) *RelationClient
func (*RelationClient) GetFriendsInfo ¶
func (x *RelationClient) GetFriendsInfo(ctx context.Context, ownerUserID string, friendUserIDs []string) ([]*relation.FriendInfoOnly, error)
type RtcServiceClient ¶
type RtcServiceClient struct {
rtc.RtcServiceClient
}
func NewRtcServiceClient ¶
func NewRtcServiceClient(cc grpc.ClientConnInterface) *RtcServiceClient
type ThirdClient ¶
type ThirdClient struct {
third.ThirdClient
}
func NewThirdClient ¶
func NewThirdClient(cc grpc.ClientConnInterface) *ThirdClient
type UserClient ¶
type UserClient struct {
user.UserClient
}
func NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) *UserClient
func (*UserClient) CheckUser ¶
func (x *UserClient) CheckUser(ctx context.Context, userIDs []string) error
func (*UserClient) GetAllOnlineUsers ¶
func (x *UserClient) GetAllOnlineUsers(ctx context.Context, cursor uint64) (*user.GetAllOnlineUsersResp, error)
func (*UserClient) GetAllUserIDs ¶
func (*UserClient) GetNotificationByID ¶
func (x *UserClient) GetNotificationByID(ctx context.Context, userID string) error
func (*UserClient) GetUserInfo ¶
func (*UserClient) GetUserOnlinePlatform ¶
func (*UserClient) GetUsersInfo ¶
func (*UserClient) GetUsersInfoMap ¶
func (*UserClient) GetUsersOnlinePlatform ¶
func (x *UserClient) GetUsersOnlinePlatform(ctx context.Context, userIDs []string) ([]*user.OnlineStatus, error)
func (*UserClient) SetUserOnlineStatus ¶
func (x *UserClient) SetUserOnlineStatus(ctx context.Context, req *user.SetUserOnlineStatusReq) error
Click to show internal directories.
Click to hide internal directories.