Documentation ¶
Index ¶
- type Client
- type Device
- type Group
- func (_m *Group) Devices() []common.Device
- func (_m *Group) GetColor() (common.Color, error)
- func (_m *Group) GetLabel() string
- func (_m *Group) GetPower() (bool, error)
- func (_m *Group) ID() string
- func (_m *Group) Lights() []common.Light
- func (_m *Group) SetColor(color common.Color, duration time.Duration) error
- func (_m *Group) SetPower(state bool) error
- func (_m *Group) SetPowerDuration(state bool, duration time.Duration) error
- type Light
- type Location
- type Logger
- func (_m *Logger) Debugf(format string, args ...interface{})
- func (_m *Logger) Errorf(format string, args ...interface{})
- func (_m *Logger) Fatalf(format string, args ...interface{})
- func (_m *Logger) Infof(format string, args ...interface{})
- func (_m *Logger) Panicf(format string, args ...interface{})
- func (_m *Logger) Warnf(format string, args ...interface{})
- type Protocol
- func (_m *Protocol) Close() error
- func (_m *Protocol) Discover() error
- func (_m *Protocol) SetClient(client common.Client)
- func (_m *Protocol) SetColor(color common.Color, duration time.Duration) error
- func (_m *Protocol) SetPower(state bool) error
- func (_m *Protocol) SetPowerDuration(state bool, duration time.Duration) error
- type SubscriptionTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { SubscriptionTarget mock.Mock }
func (*Device) CachedPower ¶ added in v0.3.0
type Group ¶ added in v0.2.0
type Group struct { SubscriptionTarget mock.Mock }
type SubscriptionTarget ¶
func (*SubscriptionTarget) CloseSubscription ¶
func (_m *SubscriptionTarget) CloseSubscription(_a0 *common.Subscription) error
func (*SubscriptionTarget) NewSubscription ¶
func (_m *SubscriptionTarget) NewSubscription() (*common.Subscription, error)
Click to show internal directories.
Click to hide internal directories.