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
Click to show internal directories.
Click to hide internal directories.