notifiers

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registries = newRegistry[domain.NotificationProviderType]()

Functions

This section is empty.

Types

type ProviderFactoryFunc

type ProviderFactoryFunc func(options *ProviderFactoryOptions) (core.Notifier, error)

type ProviderFactoryOptions

type ProviderFactoryOptions struct {
	ProviderAccessConfig   map[string]any
	ProviderExtendedConfig map[string]any
}

type Registry

type Registry[T comparable] interface {
	Register(T, ProviderFactoryFunc) error
	MustRegister(T, ProviderFactoryFunc)
	Get(T) (ProviderFactoryFunc, error)
}

Jump to

Keyboard shortcuts

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