monitor

package
v0.0.0-...-2bc2836 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

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

Monitor manages a goroutine for checking sites.

func New

func New(conn *db.Conn, n *notifier.Notifier) *Monitor

New creates and initializes a new Monitor instance.

func (*Monitor) Close

func (m *Monitor) Close()

Close shuts down the monitor.

func (*Monitor) Update

func (m *Monitor) Update()

Update indicates to the monitor that the database has changed and it should reload the data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳