Documentation ¶
Index ¶
- type Registry
- func (_m *Registry) Close() error
- func (_m *Registry) IsDisabled(_a0 string) bool
- func (_m *Registry) IsRegistered(_a0 string) bool
- func (_m *Registry) Open(_a0 context.Context, _a1 string) error
- func (_m *Registry) SetDisabled(_a0 string, _a1 bool) error
- func (_m *Registry) SetRegistered(_a0 string, _a1 bool) error
- type Sensor
- func (_m *Sensor) Attributes() interface{}
- func (_m *Sensor) Category() string
- func (_m *Sensor) DeviceClass() deviceClass.SensorDeviceClass
- func (_m *Sensor) ID() string
- func (_m *Sensor) Icon() string
- func (_m *Sensor) Name() string
- func (_m *Sensor) SensorType() sensorType.SensorType
- func (_m *Sensor) State() interface{}
- func (_m *Sensor) StateClass() stateClass.SensorStateClass
- func (_m *Sensor) Units() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
Registry is an autogenerated mock type for the Registry type
func NewRegistry ¶
NewRegistry creates a new instance of Registry. 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 (*Registry) IsDisabled ¶
IsDisabled provides a mock function with given fields: _a0
func (*Registry) IsRegistered ¶
IsRegistered provides a mock function with given fields: _a0
func (*Registry) SetDisabled ¶
SetDisabled provides a mock function with given fields: _a0, _a1
type Sensor ¶
Sensor is an autogenerated mock type for the Sensor type
func NewSensor ¶
NewSensor creates a new instance of Sensor. 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 (*Sensor) Attributes ¶
func (_m *Sensor) Attributes() interface{}
Attributes provides a mock function with given fields:
func (*Sensor) DeviceClass ¶
func (_m *Sensor) DeviceClass() deviceClass.SensorDeviceClass
DeviceClass provides a mock function with given fields:
func (*Sensor) SensorType ¶
func (_m *Sensor) SensorType() sensorType.SensorType
SensorType provides a mock function with given fields:
func (*Sensor) State ¶
func (_m *Sensor) State() interface{}
State provides a mock function with given fields:
func (*Sensor) StateClass ¶
func (_m *Sensor) StateClass() stateClass.SensorStateClass
StateClass provides a mock function with given fields: