Documentation ¶
Overview ¶
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 ¶
Code generated by mockery v1.0.0 ¶
Code generated by mockery v1.0.0 ¶
Code generated by mockery v1.0.0 ¶
Code generated by mockery v1.0.0 ¶
Code generated by mockery v1.0.0 ¶
Code generated by mockery v1.0.0
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) GetProductName() (string, error)
- func (_m *Device) ID() uint64
- func (_m *Device) Notify(event interface{})
- func (_m *Device) SetLabel(label string) error
- func (_m *Device) SetPower(state bool) error
- func (_m *Device) Subscribe() *common.Subscription
- 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) Notify(event interface{})
- 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
- func (_m *Group) Subscribe() *common.Subscription
- type Light
- func (_m *Light) CachedColor() common.Color
- func (_m *Light) CachedFirmwareVersion() string
- func (_m *Light) CachedPower() bool
- func (_m *Light) GetColor() (common.Color, error)
- func (_m *Light) GetFirmwareVersion() (string, error)
- func (_m *Light) GetLabel() (string, error)
- func (_m *Light) GetPower() (bool, error)
- func (_m *Light) GetProductName() (string, error)
- func (_m *Light) ID() uint64
- func (_m *Light) Notify(event interface{})
- func (_m *Light) SetColor(color common.Color, duration time.Duration) error
- func (_m *Light) SetLabel(label string) error
- func (_m *Light) SetPower(state bool) error
- func (_m *Light) SetPowerDuration(state bool, duration time.Duration) error
- func (_m *Light) Subscribe() *common.Subscription
- type Location
- func (_m *Location) Devices() []common.Device
- func (_m *Location) GetColor() (common.Color, error)
- func (_m *Location) GetLabel() string
- func (_m *Location) GetPower() (bool, error)
- func (_m *Location) ID() string
- func (_m *Location) Lights() []common.Light
- func (_m *Location) Notify(event interface{})
- func (_m *Location) SetColor(color common.Color, duration time.Duration) error
- func (_m *Location) SetPower(state bool) error
- func (_m *Location) SetPowerDuration(state bool, duration time.Duration) error
- func (_m *Location) Subscribe() *common.Subscription
- 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) Notify(event interface{})
- 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)
- func (_m *Protocol) Subscribe() *common.Subscription
- type SubscriptionTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) GetRetryInterval ¶
GetRetryInterval provides a mock function with given fields:
func (*Client) GetTimeout ¶
GetTimeout provides a mock function with given fields:
type Device ¶
Device is an autogenerated mock type for the Device type
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:
func (*Device) GetProductName ¶ added in v1.0.0
GetProductName provides a mock function with given fields:
func (*Device) Notify ¶ added in v1.0.0
func (_m *Device) Notify(event interface{})
Notify provides a mock function with given fields: event
func (*Device) Subscribe ¶ added in v1.0.0
func (_m *Device) Subscribe() *common.Subscription
Subscribe provides a mock function with given fields:
type Group ¶ added in v0.2.0
Group is an autogenerated mock type for the Group type
func (*Group) Notify ¶ added in v1.0.0
func (_m *Group) Notify(event interface{})
Notify provides a mock function with given fields: event
func (*Group) SetColor ¶ added in v0.2.0
SetColor provides a mock function with given fields: color, duration
func (*Group) SetPowerDuration ¶ added in v0.2.0
SetPowerDuration provides a mock function with given fields: state, duration
func (*Group) Subscribe ¶ added in v1.0.0
func (_m *Group) Subscribe() *common.Subscription
Subscribe provides a mock function with given fields:
type Light ¶
Light is an autogenerated mock type for the Light type
func (*Light) CachedColor ¶ added in v0.3.0
CachedColor provides a mock function with given fields:
func (*Light) CachedFirmwareVersion ¶ added in v1.0.0
CachedFirmwareVersion provides a mock function with given fields:
func (*Light) CachedPower ¶ added in v1.0.0
CachedPower provides a mock function with given fields:
func (*Light) GetFirmwareVersion ¶ added in v1.0.0
GetFirmwareVersion provides a mock function with given fields:
func (*Light) GetProductName ¶ added in v1.0.0
GetProductName provides a mock function with given fields:
func (*Light) Notify ¶ added in v1.0.0
func (_m *Light) Notify(event interface{})
Notify provides a mock function with given fields: event
func (*Light) SetPowerDuration ¶
SetPowerDuration provides a mock function with given fields: state, duration
func (*Light) Subscribe ¶ added in v1.0.0
func (_m *Light) Subscribe() *common.Subscription
Subscribe provides a mock function with given fields:
type Location ¶ added in v0.2.0
Location is an autogenerated mock type for the Location type
func (*Location) Notify ¶ added in v1.0.0
func (_m *Location) Notify(event interface{})
Notify provides a mock function with given fields: event
func (*Location) SetColor ¶ added in v1.0.0
SetColor provides a mock function with given fields: color, duration
func (*Location) SetPower ¶ added in v1.0.0
SetPower provides a mock function with given fields: state
func (*Location) SetPowerDuration ¶ added in v1.0.0
SetPowerDuration provides a mock function with given fields: state, duration
func (*Location) Subscribe ¶ added in v1.0.0
func (_m *Location) Subscribe() *common.Subscription
Subscribe provides a mock function with given fields:
type Logger ¶
Logger is an autogenerated mock type for the Logger type
type Protocol ¶
Protocol is an autogenerated mock type for the Protocol type
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) Notify ¶ added in v1.0.0
func (_m *Protocol) Notify(event interface{})
Notify provides a mock function with given fields: event
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
func (*Protocol) Subscribe ¶ added in v1.0.0
func (_m *Protocol) Subscribe() *common.Subscription
Subscribe provides a mock function with given fields:
type SubscriptionTarget ¶
SubscriptionTarget is an autogenerated mock type for the SubscriptionTarget type
func (*SubscriptionTarget) Notify ¶ added in v1.0.0
func (_m *SubscriptionTarget) Notify(event interface{})
Notify provides a mock function with given fields: event
func (*SubscriptionTarget) Subscribe ¶ added in v1.0.0
func (_m *SubscriptionTarget) Subscribe() *common.Subscription
Subscribe provides a mock function with given fields: