device

package
v0.0.0-...-1be5267 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const OK_MSG = "OK"

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	// Call issues an RPC to the device specified. Call returns a channel along which a device
	// response to this RPC may be communicated.
	Call(deviceName, accountSecret, functionName string, wait bool) chan string
	On(deviceName, deviceID, eventName string, callback func(deviceName, eventName, body string))
	GetHTTPHandler() http.Handler
}

func NewHandler

func NewHandler() Handler

Jump to

Keyboard shortcuts

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