Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownNotification = errors.New("slacknotifier: unknown notification") ErrInvalidLanguage = errors.New("slacknotifier: invalid language") )
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier interface { Notify( ctx context.Context, notification *senderproto.Notification, recipient *notificationproto.Recipient, language notificationproto.Recipient_Language, ) error }
func NewSlackNotifier ¶
type Option ¶
type Option func(*options)
func WithLogger ¶
func WithMetrics ¶
func WithMetrics(r metrics.Registerer) Option
Click to show internal directories.
Click to hide internal directories.