random

package
v0.0.0-...-3ecda6a Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2016 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const MaxWaitingTimeSeconds = 20

Variables

View Source
var (
	ErrWatcherRegistered = errors.New("watcher already registered")
	ErrClosed            = errors.New("sensor closed")
)

Functions

This section is empty.

Types

type Sensor

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

func NewSensor

func NewSensor(name, stateLow, stateHigh string) *Sensor

func (*Sensor) Close

func (sensor *Sensor) Close() error

func (*Sensor) Name

func (sensor *Sensor) Name() string

func (*Sensor) State

func (sensor *Sensor) State() string

func (*Sensor) Watch

func (sensor *Sensor) Watch(watcher func()) error

Jump to

Keyboard shortcuts

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