Versions in this module Expand all Collapse all v3 v3.1.4 Dec 5, 2024 v3.1.3 Dec 2, 2024 Changes in this version + type Authentication bool + const Authenticated + const Unauthenticated + type AutoEventManager interface + RestartForDevice func(name string) + StartAutoEvents func() + StopForDevice func(name string) + type DeviceServiceSDK interface + AddCustomRoute func(route string, authentication Authentication, ...) error + AddDevice func(device models.Device) (string, error) + AddDeviceAutoEvent func(deviceName string, event models.AutoEvent) error + AddDeviceProfile func(profile models.DeviceProfile) (string, error) + AddProvisionWatcher func(watcher models.ProvisionWatcher) (string, error) + AddRoute func(route string, handler func(http.ResponseWriter, *http.Request), ...) error + AsyncReadingsEnabled func() bool + AsyncValuesChannel func() chan *sdkModels.AsyncValues + DeviceCommand func(deviceName string, commandName string) (models.DeviceCommand, bool) + DeviceDiscoveryEnabled func() bool + DeviceExistsForName func(name string) bool + DeviceProfiles func() []models.DeviceProfile + DeviceResource func(deviceName string, deviceResource string) (models.DeviceResource, bool) + Devices func() []models.Device + DiscoveredDeviceChannel func() chan []sdkModels.DiscoveredDevice + DriverConfigs func() map[string]string + GetDeviceByName func(name string) (models.Device, error) + GetProfileByName func(name string) (models.DeviceProfile, error) + GetProvisionWatcherByName func(name string) (models.ProvisionWatcher, error) + ListenForCustomConfigChanges func(configToWatch interface{}, sectionName string, ...) error + LoadCustomConfig func(customConfig UpdatableConfig, sectionName string) error + LoggingClient func() logger.LoggingClient + MetricsManager func() interfaces.MetricsManager + Name func() string + PatchDevice func(updateDevice dtos.UpdateDevice) error + ProvisionWatchers func() []models.ProvisionWatcher + RemoveDeviceAutoEvent func(deviceName string, event models.AutoEvent) error + RemoveDeviceByName func(name string) error + RemoveDeviceProfileByName func(name string) error + RemoveProvisionWatcher func(name string) error + Run func() error + SecretProvider func() interfaces.SecretProvider + UpdateDevice func(device models.Device) error + UpdateDeviceOperatingState func(name string, state models.OperatingState) error + UpdateDeviceProfile func(profile models.DeviceProfile) error + UpdateProvisionWatcher func(watcher models.ProvisionWatcher) error + Version func() string + type ProtocolDriver interface + AddDevice func(deviceName string, protocols map[string]models.ProtocolProperties, ...) error + Discover func() error + HandleReadCommands func(deviceName string, protocols map[string]models.ProtocolProperties, ...) ([]*sdkModels.CommandValue, error) + HandleWriteCommands func(deviceName string, protocols map[string]models.ProtocolProperties, ...) error + Initialize func(sdk DeviceServiceSDK) error + RemoveDevice func(deviceName string, protocols map[string]models.ProtocolProperties) error + Start func() error + Stop func(force bool) error + UpdateDevice func(deviceName string, protocols map[string]models.ProtocolProperties, ...) error + ValidateDevice func(device models.Device) error + type UpdatableConfig interface