notify

package
v0.0.0-...-6b4eda8 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Config   *hrtclicker.Config
	Logger   *slog.Logger
	Database *db.SQLiteDB
}

Dependencies is a set of dependencies required by the Monitor.

type Monitor

type Monitor struct {
	Dependencies
	// contains filtered or unexported fields
}

Monitor is responsible for monitoring the HRT clicker application. It monitors for the next dosage time and sends notifications to the user via the gotify service configured in the dependency configuration.

func NewMonitor

func NewMonitor(deps Dependencies) *Monitor

func (*Monitor) Run

func (m *Monitor) Run(ctx context.Context) (err error)

Run starts the monitoring process for the HRT clicker application until the context is canceled.

Jump to

Keyboard shortcuts

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