Documentation ¶
Index ¶
Constants ¶
View Source
const ConnectionStateAnnotation = "connected"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionLogger ¶
type DeviceProvider ¶
type DeviceProvider interface { GetNextDevice() (device model.PermDevice, err error) GetDevice(id string) (result model.PermDevice, err error) }
type DeviceTypeProvider ¶
type DeviceTypeProvider interface {
GetDeviceType(deviceTypeId string) (dt models.DeviceType, err error)
}
type HubProvider ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func New ¶
func New(config configuration.Config, logger ConnectionLogger, deviceprovider DeviceProvider, hubprovider HubProvider, deviceTypeProvider DeviceTypeProvider, verne Verne, metrics *prometheus.Metrics) (*Worker, error)
func (*Worker) RunDeviceLoop ¶
Click to show internal directories.
Click to hide internal directories.