Documentation
¶
Index ¶
Constants ¶
View Source
const OFF = false
View Source
const ON = true
Variables ¶
View Source
var ( UnknownDeviceErr = errors.New("unknown device") DeviceRepeatErr = errors.New("device already exists") )
Functions ¶
This section is empty.
Types ¶
type DeviceShadow ¶
type DeviceShadow interface {
AddDevice(name string, ttl time.Duration) error
RemoveDevice(name string) error
GetDevice(name string) (d Device, err error)
GetStatus(name string) (online bool, err error)
RefreshUpdateAt(name string) (err error)
OnlineChangeCallback(func(name string, online bool))
OnlineDevice() (sn []string)
Destroy()
}
func Of ¶
func Of() DeviceShadow
Click to show internal directories.
Click to hide internal directories.