light

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	HandleGet(w http.ResponseWriter, r *http.Request)
	HandleSet(w http.ResponseWriter, r *http.Request)
	DiscoverLightState() (*LightState, error)
}

func NewHandler

func NewHandler(
	logger lager.Logger,
	gpio gpio.Gpio,
	gpioLightPin uint,
) Handler

type LightState

type LightState struct {
	StateKnown bool
	LightOn    bool
	ErrorMsg   string
}

func (LightState) StateString

func (l LightState) StateString() string

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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