Documentation ¶
Index ¶
- type Client
- type Device
- func (_m *Device) CachedFirmwareVersion() string
- func (_m *Device) CachedPower() bool
- func (_m *Device) GetFirmwareVersion() (string, error)
- func (_m *Device) GetLabel() (string, error)
- func (_m *Device) GetPower() (bool, error)
- func (_m *Device) ID() uint64
- func (_m *Device) SetLabel(label string) error
- func (_m *Device) SetPower(state bool) error
- 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) GetDevice(id uint64) (common.Device, error)
- func (_m *Protocol) GetDevices() ([]common.Device, error)
- func (_m *Protocol) GetGroup(id string) (common.Group, error)
- func (_m *Protocol) GetGroups() ([]common.Group, error)
- func (_m *Protocol) GetLocation(id string) (common.Location, error)
- func (_m *Protocol) GetLocations() ([]common.Location, error)
- 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
- func (_m *Protocol) SetRetryInterval(retryInterval *time.Duration)
- func (_m *Protocol) SetTimeout(timeout *time.Duration)
- type SubscriptionTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetRetryInterval ¶
GetRetryInterval provides a mock function with given fields:
func (*Client) GetTimeout ¶
GetTimeout provides a mock function with given fields:
type Device ¶
type Device struct { SubscriptionTarget mock.Mock }
func (*Device) CachedFirmwareVersion ¶ added in v0.4.2
CachedFirmwareVersion provides a mock function with given fields:
func (*Device) CachedPower ¶ added in v0.3.0
CachedPower provides a mock function with given fields:
func (*Device) GetFirmwareVersion ¶ added in v0.4.2
GetFirmwareVersion provides a mock function with given fields:
type Group ¶ added in v0.2.0
type Group struct { SubscriptionTarget mock.Mock }
func (*Group) SetColor ¶ added in v0.2.0
SetColor provides a mock function with given fields: color, duration
type Light ¶
func (*Light) CachedColor ¶ added in v0.3.0
CachedColor provides a mock function with given fields:
type Logger ¶
type Protocol ¶
type Protocol struct { SubscriptionTarget mock.Mock }
func (*Protocol) GetDevice ¶ added in v0.5.0
GetDevice provides a mock function with given fields: id
func (*Protocol) GetDevices ¶ added in v0.5.0
GetDevices provides a mock function with given fields:
func (*Protocol) GetLocation ¶ added in v0.5.0
GetLocation provides a mock function with given fields: id
func (*Protocol) GetLocations ¶ added in v0.5.0
GetLocations provides a mock function with given fields:
func (*Protocol) SetPowerDuration ¶
SetPowerDuration provides a mock function with given fields: state, duration
func (*Protocol) SetRetryInterval ¶ added in v0.5.0
SetRetryInterval provides a mock function with given fields: retryInterval
func (*Protocol) SetTimeout ¶ added in v0.5.0
SetTimeout provides a mock function with given fields: timeout
type SubscriptionTarget ¶
func (*SubscriptionTarget) CloseSubscription ¶
func (_m *SubscriptionTarget) CloseSubscription(_a0 *common.Subscription) error
CloseSubscription provides a mock function with given fields: _a0
func (*SubscriptionTarget) NewSubscription ¶
func (_m *SubscriptionTarget) NewSubscription() (*common.Subscription, error)
NewSubscription provides a mock function with given fields: