notification

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package notification provides the implementations of notifications for the flipper service. They are used to notify users about events that occur in the flipper service, usually they are some sort of webhook or email notifications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopNotifier

type NoopNotifier struct{}

NoopNotifier is a Notifier that does nothing.

func (*NoopNotifier) Notify

func (n *NoopNotifier) Notify(_ context.Context, _ string) error

Notify does nothing on the NoopNotifier.

type Notifier

type Notifier interface {
	Notify(ctx context.Context, message string) error
}

Notifier is the interface that wraps the Notify method.

func NewNotifierFromConfig

func NewNotifierFromConfig(cfg cfgmodel.NotificationsConfig, logger *slog.Logger) (Notifier, error)

NewNotifierFromConfig creates a new Notifier from the given NotificationsConfig.

Directories

Path Synopsis
Package mattermost implents a Mattermost client.
Package mattermost implents a Mattermost client.
Package notificationtemplate provides some (markdown) templates for notifications.
Package notificationtemplate provides some (markdown) templates for notifications.

Jump to

Keyboard shortcuts

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