tasks

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

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

Go to latest
Published: Feb 15, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Door

type Door struct {
	Accessory *models.Accessory
}

func (*Door) Run

func (door *Door) Run(pin rpio.Pin) error

Run door accessory

type Task

type Task interface {
	Run(pinID rpio.Pin) error
}

func RunAccessory

func RunAccessory(accessory *models.Accessory) (task Task, err error)

Run the accessory's task

type Toggle

type Toggle struct {
	Accessory *models.Accessory
}

func (*Toggle) Run

func (lamp *Toggle) Run(pin rpio.Pin) error

Run lamp accessory

Jump to

Keyboard shortcuts

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