Documentation ¶
Index ¶
- func Start(ctx context.Context, config *Config, client registry.SvcDiscoveryRegistry, ...) error
- func WithUserDB(db controller.UserDatabase) userNotificationSenderOptions
- func WithUserFunc(...) userNotificationSenderOptions
- type Config
- type UserNotificationSender
- func (u *UserNotificationSender) UserCommandAddNotification(ctx context.Context, tips *sdkws.UserCommandAddTips)
- func (u *UserNotificationSender) UserCommandDeleteNotification(ctx context.Context, tips *sdkws.UserCommandDeleteTips)
- func (u *UserNotificationSender) UserCommandUpdateNotification(ctx context.Context, tips *sdkws.UserCommandUpdateTips)
- func (u *UserNotificationSender) UserStatusChangeNotification(ctx context.Context, tips *sdkws.UserStatusChangeTips)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithUserDB ¶ added in v3.7.0
func WithUserDB(db controller.UserDatabase) userNotificationSenderOptions
func WithUserFunc ¶ added in v3.7.0
Types ¶
type UserNotificationSender ¶ added in v3.7.0
type UserNotificationSender struct { *rpcclient.NotificationSender // contains filtered or unexported fields }
func NewUserNotificationSender ¶ added in v3.7.0
func NewUserNotificationSender(config *Config, msgClient *rpcli.MsgClient, opts ...userNotificationSenderOptions) *UserNotificationSender
func (*UserNotificationSender) UserCommandAddNotification ¶ added in v3.7.0
func (u *UserNotificationSender) UserCommandAddNotification( ctx context.Context, tips *sdkws.UserCommandAddTips, )
func (*UserNotificationSender) UserCommandDeleteNotification ¶ added in v3.7.0
func (u *UserNotificationSender) UserCommandDeleteNotification( ctx context.Context, tips *sdkws.UserCommandDeleteTips, )
func (*UserNotificationSender) UserCommandUpdateNotification ¶ added in v3.7.0
func (u *UserNotificationSender) UserCommandUpdateNotification( ctx context.Context, tips *sdkws.UserCommandUpdateTips, )
func (*UserNotificationSender) UserStatusChangeNotification ¶ added in v3.7.0
func (u *UserNotificationSender) UserStatusChangeNotification( ctx context.Context, tips *sdkws.UserStatusChangeTips, )
Click to show internal directories.
Click to hide internal directories.