Documentation ¶
Index ¶
- type Device
- func (_m *Device) Close() error
- func (_m *Device) CloseAllSubscriptions() error
- func (_m *Device) Discover() error
- func (_m *Device) GetInfo() (common.DeviceInfo, error)
- func (_m *Device) GetLabel() (string, error)
- func (_m *Device) GetProduct() (product.Product, error)
- func (_m *Device) GetToken() []byte
- func (_m *Device) Handle(_a0 *packet.Packet) error
- func (_m *Device) HasSubscribers() bool
- func (_m *Device) ID() uint32
- func (_m *Device) NewSubscription() (subscriptioncommon.Subscription, error)
- func (_m *Device) Outbound() transport.Outbound
- func (_m *Device) Provisional() bool
- func (_m *Device) Publish(event interface{}) error
- func (_m *Device) RefreshThrottle() <-chan struct{}
- func (_m *Device) RemoveSubscription(s subscriptioncommon.Subscription) error
- func (_m *Device) Seen() time.Time
- func (_m *Device) SetProvisional(_a0 bool)
- type RefreshThrottle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
Device is an autogenerated mock type for the Device type
func (*Device) CloseAllSubscriptions ¶
CloseAllSubscriptions provides a mock function with given fields:
func (*Device) GetInfo ¶
func (_m *Device) GetInfo() (common.DeviceInfo, error)
GetInfo provides a mock function with given fields:
func (*Device) GetProduct ¶
GetProduct provides a mock function with given fields:
func (*Device) HasSubscribers ¶
HasSubscribers provides a mock function with given fields:
func (*Device) NewSubscription ¶
func (_m *Device) NewSubscription() (subscriptioncommon.Subscription, error)
NewSubscription provides a mock function with given fields:
func (*Device) Provisional ¶
Provisional provides a mock function with given fields:
func (*Device) RefreshThrottle ¶
func (_m *Device) RefreshThrottle() <-chan struct{}
RefreshThrottle provides a mock function with given fields:
func (*Device) RemoveSubscription ¶
func (_m *Device) RemoveSubscription(s subscriptioncommon.Subscription) error
RemoveSubscription provides a mock function with given fields: s
func (*Device) SetProvisional ¶
SetProvisional provides a mock function with given fields: _a0
type RefreshThrottle ¶
RefreshThrottle is an autogenerated mock type for the RefreshThrottle type
func (*RefreshThrottle) Chan ¶
func (_m *RefreshThrottle) Chan() <-chan struct{}
Chan provides a mock function with given fields:
func (*RefreshThrottle) Close ¶
func (_m *RefreshThrottle) Close()
Close provides a mock function with given fields:
func (*RefreshThrottle) Start ¶
func (_m *RefreshThrottle) Start()
Start provides a mock function with given fields:
func (*RefreshThrottle) Stop ¶
func (_m *RefreshThrottle) Stop()
Stop provides a mock function with given fields: