Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDiscordNotificationHandler ¶
func NewDiscordNotificationHandler( sendCommandObjectSender command.SendCommandObjectSender, defaultChannelName discord.ChannelName, testChannelName discord.ChannelName, ) core.NotificationHandlerTx
NewDiscordNotificationHandler returns a notificationHandler that handles all notification send to discord.
Types ¶
type NotificationSender ¶
type NotificationSender interface {
SendUpdate(ctx context.Context, notification core.Notification) error
SendDelete(ctx context.Context, notificationIdentifier base.Identifier) error
}
func NewNotificationSender ¶
func NewNotificationSender( jsonSender libkafka.JsonSender, branch base.Branch, ) NotificationSender
func NotificationSenderFunc ¶
func NotificationSenderFunc( sendUpdate func(ctx context.Context, notification core.Notification) error, sendDelete func(ctx context.Context, notificationIdentifier base.Identifier) error, ) NotificationSender
Click to show internal directories.
Click to hide internal directories.