Documentation
¶
Index ¶
- func Start(ctx context.Context, config *Config, client discovery.SvcDiscoveryRegistry, ...) error
- func UpdateGroupInfoExMap(ctx context.Context, group *pbgroup.SetGroupInfoExReq) (map[string]any, error)
- func UpdateGroupInfoMap(ctx context.Context, group *sdkws.GroupInfoForSet) map[string]any
- func UpdateGroupMemberMap(req *pbgroup.SetGroupMemberInfo) map[string]any
- func UpdateGroupMemberMutedTimeMap(t time.Time) map[string]any
- func UpdateGroupStatusMap(status int) map[string]any
- type Config
- type GroupNotificationSender
- func (g *GroupNotificationSender) GroupApplicationAcceptedNotification(ctx context.Context, req *pbgroup.GroupApplicationResponseReq)
- func (g *GroupNotificationSender) GroupApplicationAgreeMemberEnterNotification(ctx context.Context, groupID string, invitedOpUserID string, ...) error
- func (g *GroupNotificationSender) GroupApplicationRejectedNotification(ctx context.Context, req *pbgroup.GroupApplicationResponseReq)
- func (g *GroupNotificationSender) GroupCancelMutedNotification(ctx context.Context, groupID string)
- func (g *GroupNotificationSender) GroupCreatedNotification(ctx context.Context, tips *sdkws.GroupCreatedTips)
- func (g *GroupNotificationSender) GroupDismissedNotification(ctx context.Context, tips *sdkws.GroupDismissedTips)
- func (g *GroupNotificationSender) GroupInfoSetAnnouncementNotification(ctx context.Context, tips *sdkws.GroupInfoSetAnnouncementTips)
- func (g *GroupNotificationSender) GroupInfoSetNameNotification(ctx context.Context, tips *sdkws.GroupInfoSetNameTips)
- func (g *GroupNotificationSender) GroupInfoSetNotification(ctx context.Context, tips *sdkws.GroupInfoSetTips)
- func (g *GroupNotificationSender) GroupMemberCancelMutedNotification(ctx context.Context, groupID, groupMemberUserID string)
- func (g *GroupNotificationSender) GroupMemberInfoSetNotification(ctx context.Context, groupID, groupMemberUserID string)
- func (g *GroupNotificationSender) GroupMemberMutedNotification(ctx context.Context, groupID, groupMemberUserID string, mutedSeconds uint32)
- func (g *GroupNotificationSender) GroupMemberSetToAdminNotification(ctx context.Context, groupID, groupMemberUserID string)
- func (g *GroupNotificationSender) GroupMemberSetToOrdinaryUserNotification(ctx context.Context, groupID, groupMemberUserID string)
- func (g *GroupNotificationSender) GroupMutedNotification(ctx context.Context, groupID string)
- func (g *GroupNotificationSender) GroupOwnerTransferredNotification(ctx context.Context, req *pbgroup.TransferGroupOwnerReq)
- func (g *GroupNotificationSender) JoinGroupApplicationNotification(ctx context.Context, req *pbgroup.JoinGroupReq)
- func (g *GroupNotificationSender) MemberEnterNotification(ctx context.Context, groupID string, entrantUserID ...string) error
- func (g *GroupNotificationSender) MemberKickedNotification(ctx context.Context, tips *sdkws.MemberKickedTips)
- func (g *GroupNotificationSender) MemberQuitNotification(ctx context.Context, member *sdkws.GroupMemberFullInfo)
- func (g *GroupNotificationSender) PopulateGroupMember(ctx context.Context, members ...*model.GroupMember) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateGroupInfoExMap ¶ added in v3.8.1
func UpdateGroupInfoMap ¶
func UpdateGroupMemberMap ¶
func UpdateGroupMemberMap(req *pbgroup.SetGroupMemberInfo) map[string]any
func UpdateGroupStatusMap ¶
Types ¶
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 (*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 (*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
Click to show internal directories.
Click to hide internal directories.