rpcli

package
v3.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 (x *ConversationClient) CreateGroupChatConversations(ctx context.Context, groupID string, userIDs []string) error

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 (x *ConversationClient) GetConversationIDs(ctx context.Context, ownerUserID string) ([]string, error)

func (*ConversationClient) GetConversationOfflinePushUserIDs

func (x *ConversationClient) GetConversationOfflinePushUserIDs(ctx context.Context, conversationID string, userIDs []string) ([]string, error)

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 (x *ConversationClient) GetPinnedConversationIDs(ctx context.Context, ownerUserID string) ([]string, error)

func (*ConversationClient) SetConversationMaxSeq

func (x *ConversationClient) SetConversationMaxSeq(ctx context.Context, conversationID string, ownerUserIDs []string, maxSeq int64) error

func (*ConversationClient) SetConversationMinSeq

func (x *ConversationClient) SetConversationMinSeq(ctx context.Context, conversationID string, ownerUserIDs []string, minSeq int64) error

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 (x *GroupClient) DismissGroup(ctx context.Context, groupID string, deleteMember bool) error

func (*GroupClient) GetGroupInfo

func (x *GroupClient) GetGroupInfo(ctx context.Context, groupID string) (*sdkws.GroupInfo, error)

func (*GroupClient) GetGroupInfoCache

func (x *GroupClient) GetGroupInfoCache(ctx context.Context, groupID string) (*sdkws.GroupInfo, error)

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 (x *GroupClient) GetGroupMemberUserIDs(ctx context.Context, groupID string) ([]string, error)

func (*GroupClient) GetGroupMembersInfo

func (x *GroupClient) GetGroupMembersInfo(ctx context.Context, groupID string, userIDs []string) ([]*sdkws.GroupMemberFullInfo, error)

func (*GroupClient) GetGroupsInfo

func (x *GroupClient) GetGroupsInfo(ctx context.Context, groupIDs []string) ([]*sdkws.GroupInfo, error)

type MsgClient

type MsgClient struct {
	msg.MsgClient
}

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) *MsgClient

func (*MsgClient) GetActiveConversation

func (x *MsgClient) GetActiveConversation(ctx context.Context, conversationIDs []string) ([]*msg.ActiveConversation, error)

func (*MsgClient) GetConversationMaxSeq

func (x *MsgClient) GetConversationMaxSeq(ctx context.Context, conversationID string) (int64, error)

func (*MsgClient) GetHasReadSeqs

func (x *MsgClient) GetHasReadSeqs(ctx context.Context, conversationIDs []string, userID string) (map[string]int64, error)

func (*MsgClient) GetLastMessageSeqByTime

func (x *MsgClient) GetLastMessageSeqByTime(ctx context.Context, conversationID string, lastTime int64) (int64, error)

func (*MsgClient) GetMaxSeqs

func (x *MsgClient) GetMaxSeqs(ctx context.Context, conversationIDs []string) (map[string]int64, error)

func (*MsgClient) GetMsgByConversationIDs

func (x *MsgClient) GetMsgByConversationIDs(ctx context.Context, conversationIDs []string, maxSeqs map[string]int64) (map[string]*sdkws.MsgData, error)

func (*MsgClient) GetSeqMessage

func (x *MsgClient) GetSeqMessage(ctx context.Context, userID string, conversations []*msg.ConversationSeqs) (map[string]*sdkws.PullMsgs, error)

func (*MsgClient) SetUserConversationMaxSeq

func (x *MsgClient) SetUserConversationMaxSeq(ctx context.Context, conversationID string, ownerUserIDs []string, maxSeq int64) error

func (*MsgClient) SetUserConversationMin

func (x *MsgClient) SetUserConversationMin(ctx context.Context, conversationID string, ownerUserIDs []string, minSeq int64) error

func (*MsgClient) SetUserConversationsMinSeq

func (x *MsgClient) SetUserConversationsMinSeq(ctx context.Context, conversationID string, userIDs []string, seq int64) error

type MsgGatewayClient

type MsgGatewayClient struct {
	msggateway.MsgGatewayClient
}

func NewMsgGatewayClient

func NewMsgGatewayClient(cc grpc.ClientConnInterface) *MsgGatewayClient

type PushMsgServiceClient

type PushMsgServiceClient struct {
	push.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 (x *UserClient) GetAllUserIDs(ctx context.Context, pageNumber, showNumber int32) ([]string, error)

func (*UserClient) GetNotificationByID

func (x *UserClient) GetNotificationByID(ctx context.Context, userID string) error

func (*UserClient) GetUserInfo

func (x *UserClient) GetUserInfo(ctx context.Context, userID string) (*sdkws.UserInfo, error)

func (*UserClient) GetUserOnlinePlatform

func (x *UserClient) GetUserOnlinePlatform(ctx context.Context, userID string) ([]int32, error)

func (*UserClient) GetUsersInfo

func (x *UserClient) GetUsersInfo(ctx context.Context, userIDs []string) ([]*sdkws.UserInfo, error)

func (*UserClient) GetUsersInfoMap

func (x *UserClient) GetUsersInfoMap(ctx context.Context, userIDs []string) (map[string]*sdkws.UserInfo, error)

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

Jump to

Keyboard shortcuts

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