pkg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: BSD-2-Clause Imports: 9 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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