Documentation ¶
Index ¶
- type Meeting
- type User
- type UserRpcClient
- func (u *UserRpcClient) GetPublicUserInfo(ctx context.Context, userID string) (*sdkws.PublicUserInfo, error)
- func (u *UserRpcClient) GetPublicUserInfoMap(ctx context.Context, userIDs []string, complete bool) (map[string]*sdkws.PublicUserInfo, error)
- func (u *UserRpcClient) GetPublicUserInfos(ctx context.Context, userIDs []string, complete bool) ([]*sdkws.PublicUserInfo, error)
- func (u *UserRpcClient) GetUserInfo(ctx context.Context, userID string) (*user.UserInfo, error)
- func (u *UserRpcClient) GetUsersInfo(ctx context.Context, userIDs []string) ([]*user.UserInfo, error)
- func (u *UserRpcClient) GetUsersInfoMap(ctx context.Context, userIDs []string) (map[string]*user.UserInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meeting ¶
type Meeting struct { Client meeting.MeetingServiceClient Discovery discovery.SvcDiscoveryRegistry // contains filtered or unexported fields }
func NewMeeting ¶
func NewMeeting(discovery discovery.SvcDiscoveryRegistry, rpcRegisterName string) *Meeting
NewMeeting initializes and returns a User instance based on the provided service discovery registry.
type User ¶
type User struct { Client user.UserClient Discov discovery.SvcDiscoveryRegistry // contains filtered or unexported fields }
User represents a structure holding connection details for the User RPC client.
type UserRpcClient ¶
type UserRpcClient User
UserRpcClient represents the structure for a User RPC client.
func NewUserRpcClient ¶
func NewUserRpcClient(client discovery.SvcDiscoveryRegistry, rpcRegisterName string, imAdminUserID []string) UserRpcClient
NewUserRpcClient initializes a UserRpcClient based on the provided service discovery registry.
func NewUserRpcClientByUser ¶
func NewUserRpcClientByUser(user *User) *UserRpcClient
NewUserRpcClientByUser initializes a UserRpcClient based on the provided User instance.
func (*UserRpcClient) GetPublicUserInfo ¶
func (u *UserRpcClient) GetPublicUserInfo(ctx context.Context, userID string) (*sdkws.PublicUserInfo, error)
GetPublicUserInfo retrieves public information for a single user based on the provided user ID.
func (*UserRpcClient) GetPublicUserInfoMap ¶
func (u *UserRpcClient) GetPublicUserInfoMap( ctx context.Context, userIDs []string, complete bool, ) (map[string]*sdkws.PublicUserInfo, error)
GetPublicUserInfoMap retrieves a map of public user information indexed by their user IDs.
func (*UserRpcClient) GetPublicUserInfos ¶
func (u *UserRpcClient) GetPublicUserInfos( ctx context.Context, userIDs []string, complete bool, ) ([]*sdkws.PublicUserInfo, error)
GetPublicUserInfos retrieves public information for multiple users based on their user IDs.
func (*UserRpcClient) GetUserInfo ¶
GetUserInfo retrieves information for a single user based on the provided user ID.
func (*UserRpcClient) GetUsersInfo ¶
func (u *UserRpcClient) GetUsersInfo(ctx context.Context, userIDs []string) ([]*user.UserInfo, error)
GetUsersInfo retrieves information for multiple users based on their user IDs.
func (*UserRpcClient) GetUsersInfoMap ¶
func (u *UserRpcClient) GetUsersInfoMap(ctx context.Context, userIDs []string) (map[string]*user.UserInfo, error)
GetUsersInfoMap retrieves a map of user information indexed by their user IDs.