group

package
v3.8.1-rc.4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, config *Config, client discovery.SvcDiscoveryRegistry, server *grpc.Server) error

func UpdateGroupInfoExMap added in v3.8.1

func UpdateGroupInfoExMap(ctx context.Context, group *pbgroup.SetGroupInfoExReq) (map[string]any, error)

func UpdateGroupInfoMap

func UpdateGroupInfoMap(ctx context.Context, group *sdkws.GroupInfoForSet) map[string]any

func UpdateGroupMemberMap

func UpdateGroupMemberMap(req *pbgroup.SetGroupMemberInfo) map[string]any

func UpdateGroupMemberMutedTimeMap

func UpdateGroupMemberMutedTimeMap(t time.Time) map[string]any

func UpdateGroupStatusMap

func UpdateGroupStatusMap(status int) map[string]any

Types

type Config added in v3.7.0

type Config struct {
	RpcConfig          config.Group
	RedisConfig        config.Redis
	MongodbConfig      config.Mongo
	NotificationConfig config.Notification
	Share              config.Share
	WebhooksConfig     config.Webhooks
	LocalCacheConfig   config.LocalCache
	Discovery          config.Discovery
}

type GroupNotificationSender added in v3.7.0

type GroupNotificationSender struct {
	*rpcclient.NotificationSender
	// contains filtered or unexported fields
}

func NewGroupNotificationSender added in v3.7.0

func NewGroupNotificationSender(
	db controller.GroupDatabase,
	msgRpcClient *rpcclient.MessageRpcClient,
	userRpcClient *rpcclient.UserRpcClient,
	conversationRpcClient *rpcclient.ConversationRpcClient,
	config *Config,
	fn func(ctx context.Context, userIDs []string) ([]notification.CommonUser, error),
) *GroupNotificationSender

func (*GroupNotificationSender) GroupApplicationAcceptedNotification added in v3.7.0

func (g *GroupNotificationSender) GroupApplicationAcceptedNotification(ctx context.Context, req *pbgroup.GroupApplicationResponseReq)

func (*GroupNotificationSender) GroupApplicationAgreeMemberEnterNotification added in v3.8.1

func (g *GroupNotificationSender) GroupApplicationAgreeMemberEnterNotification(ctx context.Context, groupID string, invitedOpUserID string, entrantUserID ...string) error

func (*GroupNotificationSender) GroupApplicationRejectedNotification added in v3.7.0

func (g *GroupNotificationSender) GroupApplicationRejectedNotification(ctx context.Context, req *pbgroup.GroupApplicationResponseReq)

func (*GroupNotificationSender) GroupCancelMutedNotification added in v3.7.0

func (g *GroupNotificationSender) GroupCancelMutedNotification(ctx context.Context, groupID string)

func (*GroupNotificationSender) GroupCreatedNotification added in v3.7.0

func (g *GroupNotificationSender) GroupCreatedNotification(ctx context.Context, tips *sdkws.GroupCreatedTips)

func (*GroupNotificationSender) GroupDismissedNotification added in v3.7.0

func (g *GroupNotificationSender) GroupDismissedNotification(ctx context.Context, tips *sdkws.GroupDismissedTips)

func (*GroupNotificationSender) GroupInfoSetAnnouncementNotification added in v3.7.0

func (g *GroupNotificationSender) GroupInfoSetAnnouncementNotification(ctx context.Context, tips *sdkws.GroupInfoSetAnnouncementTips)

func (*GroupNotificationSender) GroupInfoSetNameNotification added in v3.7.0

func (g *GroupNotificationSender) GroupInfoSetNameNotification(ctx context.Context, tips *sdkws.GroupInfoSetNameTips)

func (*GroupNotificationSender) GroupInfoSetNotification added in v3.7.0

func (g *GroupNotificationSender) GroupInfoSetNotification(ctx context.Context, tips *sdkws.GroupInfoSetTips)

func (*GroupNotificationSender) GroupMemberCancelMutedNotification added in v3.7.0

func (g *GroupNotificationSender) GroupMemberCancelMutedNotification(ctx context.Context, groupID, groupMemberUserID string)

func (*GroupNotificationSender) GroupMemberInfoSetNotification added in v3.7.0

func (g *GroupNotificationSender) GroupMemberInfoSetNotification(ctx context.Context, groupID, groupMemberUserID string)

func (*GroupNotificationSender) GroupMemberMutedNotification added in v3.7.0

func (g *GroupNotificationSender) GroupMemberMutedNotification(ctx context.Context, groupID, groupMemberUserID string, mutedSeconds uint32)

func (*GroupNotificationSender) GroupMemberSetToAdminNotification added in v3.7.0

func (g *GroupNotificationSender) GroupMemberSetToAdminNotification(ctx context.Context, groupID, groupMemberUserID string)

func (*GroupNotificationSender) GroupMemberSetToOrdinaryUserNotification added in v3.7.0

func (g *GroupNotificationSender) GroupMemberSetToOrdinaryUserNotification(ctx context.Context, groupID, groupMemberUserID string)

func (*GroupNotificationSender) GroupMutedNotification added in v3.7.0

func (g *GroupNotificationSender) GroupMutedNotification(ctx context.Context, groupID string)

func (*GroupNotificationSender) GroupOwnerTransferredNotification added in v3.7.0

func (g *GroupNotificationSender) GroupOwnerTransferredNotification(ctx context.Context, req *pbgroup.TransferGroupOwnerReq)

func (*GroupNotificationSender) JoinGroupApplicationNotification added in v3.7.0

func (g *GroupNotificationSender) JoinGroupApplicationNotification(ctx context.Context, req *pbgroup.JoinGroupReq)

func (*GroupNotificationSender) MemberEnterNotification added in v3.7.0

func (g *GroupNotificationSender) MemberEnterNotification(ctx context.Context, groupID string, entrantUserID ...string) error

func (*GroupNotificationSender) MemberKickedNotification added in v3.7.0

func (g *GroupNotificationSender) MemberKickedNotification(ctx context.Context, tips *sdkws.MemberKickedTips)

func (*GroupNotificationSender) MemberQuitNotification added in v3.7.0

func (g *GroupNotificationSender) MemberQuitNotification(ctx context.Context, member *sdkws.GroupMemberFullInfo)

func (*GroupNotificationSender) PopulateGroupMember added in v3.7.0

func (g *GroupNotificationSender) PopulateGroupMember(ctx context.Context, members ...*model.GroupMember) error

Jump to

Keyboard shortcuts

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