notify

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Route     route.Config
	Receivers Receivers
	Channels  channel.Config
}

func (*Config) From

func (c *Config) From(app *config.App) *Config

func (*Config) Validate

func (c *Config) Validate() error

type Dependencies

type Dependencies struct {
	In             <-chan *rule.Result
	RelatedScore   func(a, b [][]float32) (float32, error)
	RouterFactory  route.Factory
	ChannelFactory channel.Factory
	KVStorage      kv.Storage
}

type Factory

--- Factory code block ---

func NewFactory

func NewFactory(mockOn ...component.MockOption) Factory

type Notifier

type Notifier interface {
	component.Component
	config.Watcher
}

--- Interface code block ---

type Receiver

type Receiver struct {
	channel.Receiver
	Name string
}

func (*Receiver) Validate

func (r *Receiver) Validate() error

type Receivers

type Receivers []Receiver

func (Receivers) Validate

func (rs Receivers) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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