Documentation ¶
Index ¶
- type DeviceValidator
- type ProtocolDriver
- func (_m *ProtocolDriver) AddDevice(deviceName string, protocols map[string]models.ProtocolProperties, ...) error
- func (_m *ProtocolDriver) HandleReadCommands(deviceName string, protocols map[string]models.ProtocolProperties, ...) ([]*pkgmodels.CommandValue, error)
- func (_m *ProtocolDriver) HandleWriteCommands(deviceName string, protocols map[string]models.ProtocolProperties, ...) error
- func (_m *ProtocolDriver) Initialize(lc logger.LoggingClient, asyncCh chan<- *pkgmodels.AsyncValues, ...) error
- func (_m *ProtocolDriver) RemoveDevice(deviceName string, protocols map[string]models.ProtocolProperties) error
- func (_m *ProtocolDriver) Stop(force bool) error
- func (_m *ProtocolDriver) UpdateDevice(deviceName string, protocols map[string]models.ProtocolProperties, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceValidator ¶
DeviceValidator is an autogenerated mock type for the DeviceValidator type
func (*DeviceValidator) ValidateDevice ¶
func (_m *DeviceValidator) ValidateDevice(device models.Device) error
ValidateDevice provides a mock function with given fields: device
type ProtocolDriver ¶
ProtocolDriver is an autogenerated mock type for the ProtocolDriver type
func (*ProtocolDriver) AddDevice ¶
func (_m *ProtocolDriver) AddDevice(deviceName string, protocols map[string]models.ProtocolProperties, adminState models.AdminState) error
AddDevice provides a mock function with given fields: deviceName, protocols, adminState
func (*ProtocolDriver) HandleReadCommands ¶
func (_m *ProtocolDriver) HandleReadCommands(deviceName string, protocols map[string]models.ProtocolProperties, reqs []pkgmodels.CommandRequest) ([]*pkgmodels.CommandValue, error)
HandleReadCommands provides a mock function with given fields: deviceName, protocols, reqs
func (*ProtocolDriver) HandleWriteCommands ¶
func (_m *ProtocolDriver) HandleWriteCommands(deviceName string, protocols map[string]models.ProtocolProperties, reqs []pkgmodels.CommandRequest, params []*pkgmodels.CommandValue) error
HandleWriteCommands provides a mock function with given fields: deviceName, protocols, reqs, params
func (*ProtocolDriver) Initialize ¶
func (_m *ProtocolDriver) Initialize(lc logger.LoggingClient, asyncCh chan<- *pkgmodels.AsyncValues, deviceCh chan<- []pkgmodels.DiscoveredDevice) error
Initialize provides a mock function with given fields: lc, asyncCh, deviceCh
func (*ProtocolDriver) RemoveDevice ¶
func (_m *ProtocolDriver) RemoveDevice(deviceName string, protocols map[string]models.ProtocolProperties) error
RemoveDevice provides a mock function with given fields: deviceName, protocols
func (*ProtocolDriver) Stop ¶
func (_m *ProtocolDriver) Stop(force bool) error
Stop provides a mock function with given fields: force
func (*ProtocolDriver) UpdateDevice ¶
func (_m *ProtocolDriver) UpdateDevice(deviceName string, protocols map[string]models.ProtocolProperties, adminState models.AdminState) error
UpdateDevice provides a mock function with given fields: deviceName, protocols, adminState