notifier

package
v0.0.0-...-9b9d156 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailSendgridNotifier

type EmailSendgridNotifier struct {
	Logger    *zap.Logger
	APIKey    string
	Sender    Source
	Receivers []Source
}

func (*EmailSendgridNotifier) Notify

func (e *EmailSendgridNotifier) Notify(clipping parser.Clipping) error

type Notifier

type Notifier interface {
	Notify(parser.Clipping) error
}

Notifier is the interface that any notifier which is going to send clippings somewhere should implement.

type Source

type Source struct {
	Name, Email string
}

Jump to

Keyboard shortcuts

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