Documentation
¶
Index ¶
- func NewNotificationServiceServer(logger *zap.SugaredLogger, db *db.DB, profileClient userv1.UserServiceClient, ...) notificationv1.NotificationServiceServer
- func NewPushSubscriptionServiceServer(logger *zap.SugaredLogger, db *db.DB, profileClient userv1.UserServiceClient, ...) notificationv1.PushServiceServer
- type MailService
- func (ms *MailService) SendConfirmationMail(ctx context.Context, request *notificationv1.SendConfirmationMailRequest) (*notificationv1.SendConfirmationMailResponse, error)
- func (ms *MailService) SendTokenMail(ctx context.Context, request *notificationv1.SendTokenMailRequest) (*notificationv1.SendTokenMailResponse, error)
- type NotificationService
- func (n *NotificationService) DeleteNotification(ctx context.Context, request *notificationv1.DeleteNotificationRequest) (*notificationv1.DeleteNotificationResponse, error)
- func (n *NotificationService) ListNotifications(ctx context.Context, req *notificationv1.ListNotificationsRequest) (*notificationv1.ListNotificationsResponse, error)
- func (n *NotificationService) SendNotification(ctx context.Context, request *notificationv1.SendNotificationRequest) (*notificationv1.SendNotificationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNotificationServiceServer ¶
func NewNotificationServiceServer(logger *zap.SugaredLogger, db *db.DB, profileClient userv1.UserServiceClient, subscriptionClient userv1.SubscriptionServiceClient) notificationv1.NotificationServiceServer
func NewPushSubscriptionServiceServer ¶
func NewPushSubscriptionServiceServer(logger *zap.SugaredLogger, db *db.DB, profileClient userv1.UserServiceClient, subscriptionClient userv1.SubscriptionServiceClient) notificationv1.PushServiceServer
Types ¶
type MailService ¶
type MailService struct { notificationv1.UnimplementedMailServiceServer // contains filtered or unexported fields }
func NewMailService ¶
func NewMailService(logger *zap.SugaredLogger) *MailService
NewMailService creates a new mail service
func (*MailService) SendConfirmationMail ¶
func (ms *MailService) SendConfirmationMail(ctx context.Context, request *notificationv1.SendConfirmationMailRequest) (*notificationv1.SendConfirmationMailResponse, error)
func (*MailService) SendTokenMail ¶
func (ms *MailService) SendTokenMail(ctx context.Context, request *notificationv1.SendTokenMailRequest) (*notificationv1.SendTokenMailResponse, error)
type NotificationService ¶
type NotificationService struct { notificationv1.UnimplementedNotificationServiceServer // contains filtered or unexported fields }
func (*NotificationService) DeleteNotification ¶
func (n *NotificationService) DeleteNotification(ctx context.Context, request *notificationv1.DeleteNotificationRequest) (*notificationv1.DeleteNotificationResponse, error)
func (*NotificationService) ListNotifications ¶
func (n *NotificationService) ListNotifications(ctx context.Context, req *notificationv1.ListNotificationsRequest) (*notificationv1.ListNotificationsResponse, error)
func (*NotificationService) SendNotification ¶
func (n *NotificationService) SendNotification(ctx context.Context, request *notificationv1.SendNotificationRequest) (*notificationv1.SendNotificationResponse, error)
Click to show internal directories.
Click to hide internal directories.