Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device interface { Name() string On() Off() State() (bool, error) Number() int TypeInfo() DeviceTypeInfo }
type DeviceCategory ¶
type DeviceCategory int
const ( Fans DeviceCategory = iota Lights )
func (DeviceCategory) String ¶
func (d DeviceCategory) String() string
type DeviceTypeInfo ¶
type DeviceTypeInfo struct {
Category DeviceCategory
}
type Relay ¶
type Relay struct { Normality Normality DeviceName string DeviceTypeInfo // contains filtered or unexported fields }
func (*Relay) TypeInfo ¶
func (r *Relay) TypeInfo() DeviceTypeInfo
Click to show internal directories.
Click to hide internal directories.