notification

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification struct {
	Params    NotificationParams
	Body      []byte
	PlainBody []byte
}

func (*Notification) Valid

func (n *Notification) Valid() bool

Valid method checks if the email is valid. It returns true if the recipient email address, the subject and the body are not empty.

type NotificationParams

type NotificationParams struct {
	To      string
	Subject string
}

func (NotificationParams) Valid

func (p NotificationParams) Valid() bool

type Queue

type Queue interface {
	Start()
	Stop()
	Pop() (Notification, bool)
	Push(Notification) error
	Send(Notification) error
}

Directories

Path Synopsis
templates

Jump to

Keyboard shortcuts

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