Documentation
¶
Index ¶
- type Debugger
- type DeviceHandler
- type Discovery
- type Driver
- func (_m *Driver) CallService(device *contracts.Device, reqs []contracts.CallRequest) error
- func (_m *Driver) Initialize(_a0 logger.Logger, asyncCh chan<- *contracts.AsyncValues) error
- func (_m *Driver) ReadProperty(device *contracts.Device, reqs []contracts.ReadRequest) error
- func (_m *Driver) Stop(force bool) error
- func (_m *Driver) WriteProperty(device *contracts.Device, reqs []contracts.WriteRequest) error
- type Reporter
- type StatusManager
- func (_m *StatusManager) OnAddDevice(deviceName string)
- func (_m *StatusManager) OnHandleCommandsFailed(deviceName string, n int64)
- func (_m *StatusManager) OnHandleCommandsSuccessfully(deviceName string, n int64)
- func (_m *StatusManager) OnRemoveDevice(deviceName string)
- func (_m *StatusManager) SetDeviceOffline(deviceName string, reason string)
- func (_m *StatusManager) SetDeviceOnline(deviceName string)
- func (_m *StatusManager) UpdateDeviceStatus(deviceName string, status string, reason string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Debugger ¶
Debugger is an autogenerated mock type for the Debugger type
func NewDebugger ¶
NewDebugger creates a new instance of Debugger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type DeviceHandler ¶
DeviceHandler is an autogenerated mock type for the DeviceHandler type
func NewDeviceHandler ¶
func NewDeviceHandler(t interface { mock.TestingT Cleanup(func()) }) *DeviceHandler
NewDeviceHandler creates a new instance of DeviceHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DeviceHandler) AddDevice ¶
func (_m *DeviceHandler) AddDevice(device *contracts.Device) error
AddDevice provides a mock function with given fields: device
func (*DeviceHandler) RemoveDevice ¶
func (_m *DeviceHandler) RemoveDevice(device *contracts.Device) error
RemoveDevice provides a mock function with given fields: device
func (*DeviceHandler) UpdateDevice ¶
func (_m *DeviceHandler) UpdateDevice(device *contracts.Device) error
UpdateDevice provides a mock function with given fields: device
type Discovery ¶
Discovery is an autogenerated mock type for the Discovery type
func NewDiscovery ¶
NewDiscovery creates a new instance of Discovery. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type Driver ¶
Driver is an autogenerated mock type for the Driver type
func NewDriver ¶
NewDriver creates a new instance of Driver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Driver) CallService ¶ added in v1.1.0
CallService provides a mock function with given fields: device, reqs
func (*Driver) Initialize ¶
Initialize provides a mock function with given fields: _a0, asyncCh
func (*Driver) ReadProperty ¶ added in v1.1.0
ReadProperty provides a mock function with given fields: device, reqs
func (*Driver) WriteProperty ¶ added in v1.1.0
WriteProperty provides a mock function with given fields: device, reqs
type Reporter ¶ added in v1.1.0
Reporter is an autogenerated mock type for the Reporter type
func NewReporter ¶ added in v1.1.0
NewReporter creates a new instance of Reporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Reporter) ReportEvent ¶ added in v1.1.0
func (_m *Reporter) ReportEvent(event *contracts.AsyncValues) error
ReportEvent provides a mock function with given fields: event
type StatusManager ¶ added in v1.1.0
StatusManager is an autogenerated mock type for the StatusManager type
func NewStatusManager ¶ added in v1.1.0
func NewStatusManager(t interface { mock.TestingT Cleanup(func()) }) *StatusManager
NewStatusManager creates a new instance of StatusManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StatusManager) OnAddDevice ¶ added in v1.1.0
func (_m *StatusManager) OnAddDevice(deviceName string)
OnAddDevice provides a mock function with given fields: deviceName
func (*StatusManager) OnHandleCommandsFailed ¶ added in v1.1.0
func (_m *StatusManager) OnHandleCommandsFailed(deviceName string, n int64)
OnHandleCommandsFailed provides a mock function with given fields: deviceName, n
func (*StatusManager) OnHandleCommandsSuccessfully ¶ added in v1.1.0
func (_m *StatusManager) OnHandleCommandsSuccessfully(deviceName string, n int64)
OnHandleCommandsSuccessfully provides a mock function with given fields: deviceName, n
func (*StatusManager) OnRemoveDevice ¶ added in v1.1.0
func (_m *StatusManager) OnRemoveDevice(deviceName string)
OnRemoveDevice provides a mock function with given fields: deviceName
func (*StatusManager) SetDeviceOffline ¶ added in v1.1.0
func (_m *StatusManager) SetDeviceOffline(deviceName string, reason string)
SetDeviceOffline provides a mock function with given fields: deviceName, reason
func (*StatusManager) SetDeviceOnline ¶ added in v1.1.0
func (_m *StatusManager) SetDeviceOnline(deviceName string)
SetDeviceOnline provides a mock function with given fields: deviceName
func (*StatusManager) UpdateDeviceStatus ¶ added in v1.1.0
func (_m *StatusManager) UpdateDeviceStatus(deviceName string, status string, reason string)
UpdateDeviceStatus provides a mock function with given fields: deviceName, status, reason