Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionLogger ¶
type DeviceProvider ¶
type DeviceProvider interface { GetNextDevice() (device model.ExtendedDevice, resets int, err error) GetDevice(id string) (result model.ExtendedDevice, err error) }
type DeviceTypeProvider ¶
type DeviceTypeProvider interface {
GetDeviceType(deviceTypeId string) (dt models.DeviceType, err error)
}
type HubProvider ¶
type HubProvider interface { GetNextHub() (hub model.ExtendedHub, resets int, err error) GetHub(id string) (result model.ExtendedHub, err error) }
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.