watch

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.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 Watch

type Watch struct {
	// CRNs is a list of courses to be
	// checked by crn
	CRNs []int
	// Courses is a list of courses
	// to be checked by name
	Names []string
	// Duration is the time spent between checks
	Duration time.Duration // 12h
	Term     string
	Year     int
}

Watch is a class that holds config data that defines an action to be watched.

type Watcher

type Watcher interface {
	Watch() error
}

Watcher is an interface that watches duh... jk lol

type WatcherFunc added in v0.0.3

type WatcherFunc func() error

WatcherFunc is a function that implements the Watcher interface.

func (WatcherFunc) Watch added in v0.0.3

func (wf WatcherFunc) Watch() error

Watch will run the watch function

Jump to

Keyboard shortcuts

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