notifications

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	ShutdownComplete chan bool // Closed after we shutdown
	// contains filtered or unexported fields
}

Notifier is responsible for sending notifications (eg alarm activations) to accounts.cyclopcam.org.

func NewNotifier

func NewNotifier(logger logs.Log, configDB *configdb.ConfigDB, eventDB *eventdb.EventDB, mainServerCtx context.Context) (*Notifier, error)

func (*Notifier) InjectEventIntoTransmitQueue

func (n *Notifier) InjectEventIntoTransmitQueue(ev *eventdb.Event)

Inject a fake event (one which doesn't exist in the DB) into the transmit queue. This was created for testing notifications.

Jump to

Keyboard shortcuts

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