Documentation ¶
Index ¶
- func Start(ctx context.Context, config *Config, client discovery.SvcDiscoveryRegistry, ...) error
- func WithDBFunc(...) friendNotificationSenderOptions
- func WithFriendDB(db controller.FriendDatabase) friendNotificationSenderOptions
- func WithRpcFunc(fn func(ctx context.Context, userIDs []string) ([]*sdkws.UserInfo, error)) friendNotificationSenderOptions
- type Config
- type FriendNotificationSender
- func (f *FriendNotificationSender) BlackAddedNotification(ctx context.Context, req *relation.AddBlackReq)
- func (f *FriendNotificationSender) BlackDeletedNotification(ctx context.Context, req *relation.RemoveBlackReq)
- func (f *FriendNotificationSender) FriendAddedNotification(ctx context.Context, operationID, opUserID, fromUserID, toUserID string) error
- func (f *FriendNotificationSender) FriendApplicationAddNotification(ctx context.Context, req *relation.ApplyToAddFriendReq)
- func (f *FriendNotificationSender) FriendApplicationAgreedNotification(ctx context.Context, req *relation.RespondFriendApplyReq)
- func (f *FriendNotificationSender) FriendApplicationRefusedNotification(ctx context.Context, req *relation.RespondFriendApplyReq)
- func (f *FriendNotificationSender) FriendDeletedNotification(ctx context.Context, req *relation.DeleteFriendReq)
- func (f *FriendNotificationSender) FriendInfoUpdatedNotification(ctx context.Context, changedUserID string, needNotifiedUserID string)
- func (f *FriendNotificationSender) FriendRemarkSetNotification(ctx context.Context, fromUserID, toUserID string)
- func (f *FriendNotificationSender) FriendsInfoUpdateNotification(ctx context.Context, toUserID string, friendIDs []string)
- func (f *FriendNotificationSender) UserInfoUpdatedNotification(ctx context.Context, changedUserID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDBFunc ¶
func WithFriendDB ¶
func WithFriendDB(db controller.FriendDatabase) friendNotificationSenderOptions
Types ¶
type FriendNotificationSender ¶
type FriendNotificationSender struct { *rpcclient.NotificationSender // contains filtered or unexported fields }
func NewFriendNotificationSender ¶
func NewFriendNotificationSender(conf *config.Notification, msgClient *rpcli.MsgClient, opts ...friendNotificationSenderOptions) *FriendNotificationSender
func (*FriendNotificationSender) BlackAddedNotification ¶
func (f *FriendNotificationSender) BlackAddedNotification(ctx context.Context, req *relation.AddBlackReq)
func (*FriendNotificationSender) BlackDeletedNotification ¶
func (f *FriendNotificationSender) BlackDeletedNotification(ctx context.Context, req *relation.RemoveBlackReq)
func (*FriendNotificationSender) FriendAddedNotification ¶
func (f *FriendNotificationSender) FriendAddedNotification( ctx context.Context, operationID, opUserID, fromUserID, toUserID string, ) error
func (*FriendNotificationSender) FriendApplicationAddNotification ¶
func (f *FriendNotificationSender) FriendApplicationAddNotification(ctx context.Context, req *relation.ApplyToAddFriendReq)
func (*FriendNotificationSender) FriendApplicationAgreedNotification ¶
func (f *FriendNotificationSender) FriendApplicationAgreedNotification( ctx context.Context, req *relation.RespondFriendApplyReq, )
func (*FriendNotificationSender) FriendApplicationRefusedNotification ¶
func (f *FriendNotificationSender) FriendApplicationRefusedNotification( ctx context.Context, req *relation.RespondFriendApplyReq, )
func (*FriendNotificationSender) FriendDeletedNotification ¶
func (f *FriendNotificationSender) FriendDeletedNotification(ctx context.Context, req *relation.DeleteFriendReq)
func (*FriendNotificationSender) FriendInfoUpdatedNotification ¶
func (f *FriendNotificationSender) FriendInfoUpdatedNotification(ctx context.Context, changedUserID string, needNotifiedUserID string)
func (*FriendNotificationSender) FriendRemarkSetNotification ¶
func (f *FriendNotificationSender) FriendRemarkSetNotification(ctx context.Context, fromUserID, toUserID string)
func (*FriendNotificationSender) FriendsInfoUpdateNotification ¶
func (f *FriendNotificationSender) FriendsInfoUpdateNotification(ctx context.Context, toUserID string, friendIDs []string)
func (*FriendNotificationSender) UserInfoUpdatedNotification ¶
func (f *FriendNotificationSender) UserInfoUpdatedNotification(ctx context.Context, changedUserID string)
Click to show internal directories.
Click to hide internal directories.