watcher

package
v0.0.0-...-cc16d5f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

func NewWatcher

func NewWatcher(db db.DB, calendar db.Calendar, firewall router.Firewall,
	addressGroup string) (w *Watcher)

func (*Watcher) AddDevice

func (w *Watcher) AddDevice(device db.Device) (err error)

func (*Watcher) AddDevices

func (w *Watcher) AddDevices(devices []db.Device) (err error)

func (*Watcher) BlockList

func (w *Watcher) BlockList() (blockList []db.DeviceIP, goodUntil time.Time, err error)

func (*Watcher) Close

func (w *Watcher) Close() (err error)

func (*Watcher) ModifyActiveUntil

func (w *Watcher) ModifyActiveUntil(ip db.DeviceIP, delta time.Duration) (err error)

func (*Watcher) SetActiveUntil

func (w *Watcher) SetActiveUntil(ip db.DeviceIP, activeUntil time.Time) (err error)

func (*Watcher) Start

func (w *Watcher) Start() (err error)

func (*Watcher) State

func (w *Watcher) State() (state []db.Device, err error)

Jump to

Keyboard shortcuts

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