group

package
v3.8.3-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 47 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 NotificationSender added in v3.8.3

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

func NewNotificationSender added in v3.8.3

func NewNotificationSender(db controller.GroupDatabase, config *Config, userClient *rpcli.UserClient, msgClient *rpcli.MsgClient, conversationClient *rpcli.ConversationClient) *NotificationSender

func (*NotificationSender) GroupApplicationAcceptedNotification added in v3.8.3

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

func (*NotificationSender) GroupApplicationAgreeMemberEnterNotification added in v3.8.3

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

func (*NotificationSender) GroupApplicationRejectedNotification added in v3.8.3

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

func (*NotificationSender) GroupCancelMutedNotification added in v3.8.3

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

func (*NotificationSender) GroupCreatedNotification added in v3.8.3

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

func (*NotificationSender) GroupDismissedNotification added in v3.8.3

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

func (*NotificationSender) GroupInfoSetAnnouncementNotification added in v3.8.3

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

func (*NotificationSender) GroupInfoSetNameNotification added in v3.8.3

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

func (*NotificationSender) GroupInfoSetNotification added in v3.8.3

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

func (*NotificationSender) GroupMemberCancelMutedNotification added in v3.8.3

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

func (*NotificationSender) GroupMemberInfoSetNotification added in v3.8.3

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

func (*NotificationSender) GroupMemberMutedNotification added in v3.8.3

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

func (*NotificationSender) GroupMemberSetToAdminNotification added in v3.8.3

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

func (*NotificationSender) GroupMemberSetToOrdinaryUserNotification added in v3.8.3

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

func (*NotificationSender) GroupMutedNotification added in v3.8.3

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

func (*NotificationSender) GroupOwnerTransferredNotification added in v3.8.3

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

func (*NotificationSender) JoinGroupApplicationNotification added in v3.8.3

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

func (*NotificationSender) MemberEnterNotification added in v3.8.3

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

func (*NotificationSender) MemberKickedNotification added in v3.8.3

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

func (*NotificationSender) MemberQuitNotification added in v3.8.3

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

func (*NotificationSender) PopulateGroupMember added in v3.8.3

func (g *NotificationSender) 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