Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BatchNoMatchAfterMultipleResets = errors.New("no matching element found after multiple resets")
View Source
var BatchNotInWindowErr = errors.New("no matching element in batch window")
View Source
var ErrNotFound = errors.New("key not found in cache")
Functions ¶
func DeviceTypeUsesHandledProtocol ¶
func DeviceTypeUsesHandledProtocol(dt models.DeviceType, handledProtocols map[string]bool) (result bool)
Types ¶
type Batch ¶ added in v0.0.19
type Batch[T any] struct { // contains filtered or unexported fields }
type DeviceProvider ¶
type DeviceProvider struct {
// contains filtered or unexported fields
}
func NewDeviceProvider ¶
func NewDeviceProvider(config configuration.Config, tokengen TokenGenerator, devicetypes DeviceTypeProviderInterface) (result *DeviceProvider, err error)
func (*DeviceProvider) GetDevice ¶
func (this *DeviceProvider) GetDevice(id string) (result model.ExtendedDevice, err error)
func (*DeviceProvider) GetNextDevice ¶
func (this *DeviceProvider) GetNextDevice() (device model.ExtendedDevice, resets int, err error)
type DeviceTypeProvider ¶
type DeviceTypeProvider struct {
// contains filtered or unexported fields
}
func NewDeviceTypeProvider ¶
func NewDeviceTypeProvider(config configuration.Config, tokengen TokenGenerator) (*DeviceTypeProvider, error)
func (*DeviceTypeProvider) GetDeviceType ¶
func (this *DeviceTypeProvider) GetDeviceType(id string) (result model.DeviceType, err error)
type DeviceTypeProviderInterface ¶
type DeviceTypeProviderInterface interface {
GetDeviceType(deviceTypeId string) (dt models.DeviceType, err error)
}
type HubProvider ¶
type HubProvider struct {
// contains filtered or unexported fields
}
func NewHubProvider ¶
func NewHubProvider(config configuration.Config, tokengen TokenGenerator, devicetypes DeviceTypeProviderInterface) (result *HubProvider, err error)
func (*HubProvider) GetHub ¶
func (this *HubProvider) GetHub(id string) (result model.ExtendedHub, err error)
func (*HubProvider) GetNextHub ¶
func (this *HubProvider) GetNextHub() (hub model.ExtendedHub, resets int, err error)
func (*HubProvider) HubMatchesProtocol ¶
func (this *HubProvider) HubMatchesProtocol(hub model.ExtendedHub) (result bool, err error)
type TokenGenerator ¶
Click to show internal directories.
Click to hide internal directories.