monitor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MauriceURL = "https://whereismaurice.com/rss"

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier interface {
	Send(title, message string) []error
}

type Server

type Server struct {
	Tracker
	Notifier
	// contains filtered or unexported fields
}

func New

func New(notifierURL string) *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context)

type ShoutrrrNotifier

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

func (*ShoutrrrNotifier) Send

func (n *ShoutrrrNotifier) Send(title, message string) []error

type Sighting

type Sighting struct {
	Map       string
	Selling   string
	Timestamp time.Time
}

type Tracker

type Tracker struct {
	URL string
}

func (*Tracker) Find

func (t *Tracker) Find(ctx context.Context) ([]Sighting, error)

Jump to

Keyboard shortcuts

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