group

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerGroupMemberToLocalGroupMember

func ServerGroupMemberToLocalGroupMember(info *sdkws.GroupMemberFullInfo) *model_struct.LocalGroupMember

func ServerGroupRequestToLocalAdminGroupRequest

func ServerGroupRequestToLocalAdminGroupRequest(info *sdkws.GroupRequest) *model_struct.LocalAdminGroupRequest

func ServerGroupRequestToLocalGroupRequest

func ServerGroupRequestToLocalGroupRequest(info *sdkws.GroupRequest) *model_struct.LocalGroupRequest

func ServerGroupToLocalGroup

func ServerGroupToLocalGroup(info *sdkws.GroupInfo) *model_struct.LocalGroup

Types

type Group

type Group struct {
	// contains filtered or unexported fields
}

//utils.GetCurrentTimestampByMill()

func NewGroup

func NewGroup(loginUserID string, db db_interface.DataBase,
	conversationCh chan common.Cmd2Value) *Group

func (*Group) AcceptGroupApplication

func (g *Group) AcceptGroupApplication(ctx context.Context, groupID, fromUserID, handleMsg string) error

func (*Group) ChangeGroupMemberMute

func (g *Group) ChangeGroupMemberMute(ctx context.Context, groupID, userID string, mutedSeconds int) (err error)

func (*Group) ChangeGroupMute

func (g *Group) ChangeGroupMute(ctx context.Context, groupID string, isMute bool) (err error)

func (*Group) CreateGroup

func (g *Group) CreateGroup(ctx context.Context, req *group.CreateGroupReq) (*sdkws.GroupInfo, error)

func (*Group) DeleteGroupAndMemberInfo

func (g *Group) DeleteGroupAndMemberInfo(ctx context.Context)

func (*Group) DismissGroup

func (g *Group) DismissGroup(ctx context.Context, groupID string) error

func (*Group) DoNotification

func (g *Group) DoNotification(ctx context.Context, msg *sdkws.MsgData)

func (*Group) GetDesignatedGroupMembers

func (g *Group) GetDesignatedGroupMembers(ctx context.Context, groupID string, userID []string) ([]*sdkws.GroupMemberFullInfo, error)

func (*Group) GetGroupAbstractInfo

func (g *Group) GetGroupAbstractInfo(ctx context.Context, groupID string) (*group.GroupAbstractInfo, error)

func (*Group) GetGroupApplicationListAsApplicant

func (g *Group) GetGroupApplicationListAsApplicant(ctx context.Context) ([]*model_struct.LocalGroupRequest, error)

func (*Group) GetGroupApplicationListAsRecipient

func (g *Group) GetGroupApplicationListAsRecipient(ctx context.Context) ([]*model_struct.LocalAdminGroupRequest, error)

func (*Group) GetGroupInfoFromLocal2Svr

func (g *Group) GetGroupInfoFromLocal2Svr(ctx context.Context, groupID string) (*model_struct.LocalGroup, error)

func (*Group) GetGroupMemberList

func (g *Group) GetGroupMemberList(ctx context.Context, groupID string, filter, offset, count int32) ([]*model_struct.LocalGroupMember, error)

func (*Group) GetGroupMemberListByJoinTimeFilter

func (g *Group) GetGroupMemberListByJoinTimeFilter(ctx context.Context, groupID string, offset, count int32, joinTimeBegin, joinTimeEnd int64, userIDs []string) ([]*model_struct.LocalGroupMember, error)

func (*Group) GetGroupMemberOwnerAndAdmin

func (g *Group) GetGroupMemberOwnerAndAdmin(ctx context.Context, groupID string) ([]*model_struct.LocalGroupMember, error)

func (*Group) GetGroupOwnerIDAndAdminIDList

func (g *Group) GetGroupOwnerIDAndAdminIDList(ctx context.Context, groupID string) (ownerID string, adminIDList []string, err error)

func (*Group) GetGroupsInfoFromLocal2Svr

func (g *Group) GetGroupsInfoFromLocal2Svr(ctx context.Context, groupIDs ...string) (map[string]*model_struct.LocalGroup, error)

func (*Group) GetJoinedDiffusionGroupIDListFromSvr

func (g *Group) GetJoinedDiffusionGroupIDListFromSvr(ctx context.Context) ([]string, error)

func (*Group) GetJoinedGroupList

func (g *Group) GetJoinedGroupList(ctx context.Context) ([]*model_struct.LocalGroup, error)

func (*Group) GetServerAdminGroupApplicationList

func (g *Group) GetServerAdminGroupApplicationList(ctx context.Context) ([]*sdkws.GroupRequest, error)

func (*Group) GetServerGroupMembers

func (g *Group) GetServerGroupMembers(ctx context.Context, groupID string) ([]*sdkws.GroupMemberFullInfo, error)

func (*Group) GetServerJoinGroup

func (g *Group) GetServerJoinGroup(ctx context.Context) ([]*sdkws.GroupInfo, error)

func (*Group) GetServerSelfGroupApplication

func (g *Group) GetServerSelfGroupApplication(ctx context.Context) ([]*sdkws.GroupRequest, error)

func (*Group) GetSpecifiedGroupMembersInfo

func (g *Group) GetSpecifiedGroupMembersInfo(ctx context.Context, groupID string, userIDList []string) ([]*model_struct.LocalGroupMember, error)

func (*Group) GetSpecifiedGroupsInfo

func (g *Group) GetSpecifiedGroupsInfo(ctx context.Context, groupIDs []string) ([]*model_struct.LocalGroup, error)

func (*Group) HandlerGroupApplication

func (g *Group) HandlerGroupApplication(ctx context.Context, req *group.GroupApplicationResponseReq) error

func (*Group) InviteUserToGroup

func (g *Group) InviteUserToGroup(ctx context.Context, groupID, reason string, userIDList []string) error

func (*Group) IsJoinGroup

func (g *Group) IsJoinGroup(ctx context.Context, groupID string) (bool, error)

func (*Group) JoinGroup

func (g *Group) JoinGroup(ctx context.Context, groupID, reqMsg string, joinSource int32, ex string) error

func (*Group) KickGroupMember

func (g *Group) KickGroupMember(ctx context.Context, groupID string, reason string, userIDList []string) error

func (*Group) QuitGroup

func (g *Group) QuitGroup(ctx context.Context, groupID string) error

func (*Group) RefuseGroupApplication

func (g *Group) RefuseGroupApplication(ctx context.Context, groupID, fromUserID, handleMsg string) error

func (*Group) SearchGroupMembers

func (g *Group) SearchGroupMembers(ctx context.Context, searchParam *sdk_params_callback.SearchGroupMembersParam) ([]*model_struct.LocalGroupMember, error)

func (*Group) SearchGroups

func (*Group) SetGroupApplyMemberFriend

func (g *Group) SetGroupApplyMemberFriend(ctx context.Context, groupID string, rule int32) error

func (*Group) SetGroupInfo

func (g *Group) SetGroupInfo(ctx context.Context, groupInfo *sdkws.GroupInfoForSet) error

func (*Group) SetGroupListener

func (g *Group) SetGroupListener(listener func() open_im_sdk_callback.OnGroupListener)

func (*Group) SetGroupLookMemberInfo

func (g *Group) SetGroupLookMemberInfo(ctx context.Context, groupID string, rule int32) error

func (*Group) SetGroupMemberInfo

func (g *Group) SetGroupMemberInfo(ctx context.Context, groupMemberInfo *group.SetGroupMemberInfo) error

func (*Group) SetGroupMemberNickname

func (g *Group) SetGroupMemberNickname(ctx context.Context, groupID, userID string, groupMemberNickname string) error

func (*Group) SetGroupMemberRoleLevel

func (g *Group) SetGroupMemberRoleLevel(ctx context.Context, groupID, userID string, roleLevel int) error

func (*Group) SetGroupVerification

func (g *Group) SetGroupVerification(ctx context.Context, groupID string, verification int32) error

func (*Group) SetListenerForService

func (g *Group) SetListenerForService(listener open_im_sdk_callback.OnListenerForService)

func (*Group) SyncAdminGroupApplications

func (g *Group) SyncAdminGroupApplications(ctx context.Context, groupIDs ...string) error

func (*Group) SyncAllAdminGroupApplication

func (g *Group) SyncAllAdminGroupApplication(ctx context.Context) error

func (*Group) SyncAllGroupMember

func (g *Group) SyncAllGroupMember(ctx context.Context, groupID string) error

func (*Group) SyncAllJoinedGroupsAndMembers

func (g *Group) SyncAllJoinedGroupsAndMembers(ctx context.Context) error

func (*Group) SyncAllSelfGroupApplication

func (g *Group) SyncAllSelfGroupApplication(ctx context.Context) error

func (*Group) SyncGroupMembers

func (g *Group) SyncGroupMembers(ctx context.Context, groupID string, userIDs ...string) error

func (*Group) SyncGroups

func (g *Group) SyncGroups(ctx context.Context, groupIDs ...string) error

func (*Group) SyncSelfGroupApplications

func (g *Group) SyncSelfGroupApplications(ctx context.Context, groupIDs ...string) error

func (*Group) TransferGroupOwner

func (g *Group) TransferGroupOwner(ctx context.Context, groupID, newOwnerUserID string) error

Jump to

Keyboard shortcuts

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