sender

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(c *di.Container)

Types

type NotificationSender

type NotificationSender interface {
	Codebase(ctx context.Context, codebaseID string, notificationType notification.NotificationType, referenceID, senderUserID string) error
	User(ctx context.Context, userID, codebaseID string, notificationType notification.NotificationType, referenceID string) error
}

func NewNoopNotificationSender

func NewNoopNotificationSender() NotificationSender

func NewNotificationSender

func NewNotificationSender(
	logger *zap.Logger,

	codebaseUserRepo db_codebase.CodebaseUserRepository,
	notificationRepo db_notification.Repository,
	userRepo db_user.Repository,

	eventsSender events.EventSender,
	emailSender transactional.EmailSender,
) NotificationSender

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL