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 NotificationSender
- func (g *NotificationSender) GroupApplicationAcceptedNotification(ctx context.Context, req *pbgroup.GroupApplicationResponseReq)
- func (g *NotificationSender) GroupApplicationAgreeMemberEnterNotification(ctx context.Context, groupID string, invitedOpUserID string, ...) error
- func (g *NotificationSender) GroupApplicationRejectedNotification(ctx context.Context, req *pbgroup.GroupApplicationResponseReq)
- func (g *NotificationSender) GroupCancelMutedNotification(ctx context.Context, groupID string)
- func (g *NotificationSender) GroupCreatedNotification(ctx context.Context, tips *sdkws.GroupCreatedTips)
- func (g *NotificationSender) GroupDismissedNotification(ctx context.Context, tips *sdkws.GroupDismissedTips)
- func (g *NotificationSender) GroupInfoSetAnnouncementNotification(ctx context.Context, tips *sdkws.GroupInfoSetAnnouncementTips)
- func (g *NotificationSender) GroupInfoSetNameNotification(ctx context.Context, tips *sdkws.GroupInfoSetNameTips)
- func (g *NotificationSender) GroupInfoSetNotification(ctx context.Context, tips *sdkws.GroupInfoSetTips)
- func (g *NotificationSender) GroupMemberCancelMutedNotification(ctx context.Context, groupID, groupMemberUserID string)
- func (g *NotificationSender) GroupMemberInfoSetNotification(ctx context.Context, groupID, groupMemberUserID string)
- func (g *NotificationSender) GroupMemberMutedNotification(ctx context.Context, groupID, groupMemberUserID string, mutedSeconds uint32)
- func (g *NotificationSender) GroupMemberSetToAdminNotification(ctx context.Context, groupID, groupMemberUserID string)
- func (g *NotificationSender) GroupMemberSetToOrdinaryUserNotification(ctx context.Context, groupID, groupMemberUserID string)
- func (g *NotificationSender) GroupMutedNotification(ctx context.Context, groupID string)
- func (g *NotificationSender) GroupOwnerTransferredNotification(ctx context.Context, req *pbgroup.TransferGroupOwnerReq)
- func (g *NotificationSender) JoinGroupApplicationNotification(ctx context.Context, req *pbgroup.JoinGroupReq)
- func (g *NotificationSender) MemberEnterNotification(ctx context.Context, groupID string, entrantUserID string) error
- func (g *NotificationSender) MemberKickedNotification(ctx context.Context, tips *sdkws.MemberKickedTips)
- func (g *NotificationSender) MemberQuitNotification(ctx context.Context, member *sdkws.GroupMemberFullInfo)
- func (g *NotificationSender) 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 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 (*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 (*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
Click to show internal directories.
Click to hide internal directories.