Documentation ¶
Index ¶
- Constants
- Variables
- func AddEventTags(event *dtos.Event)
- func AddReadingTags(reading *dtos.BaseReading)
- func InitializeSentMetrics(lc logger.LoggingClient, dic *di.Container)
- func SendDeviceAlarm(deviceAlarm models.DeviceAlarm, correlationID string, dic *di.Container)
- func SendDeviceStatusUpdate(deviceStatusUpdate *dtos.DeviceStatusUpdate, correlationID string, ...)
- func SendEvent(event *dtos.Event, correlationID string, dic *di.Container)
- func UpdateOperatingState(name string, state string, lc logger.LoggingClient, dc interfaces.DeviceClient)
Constants ¶
View Source
const ( URLRawQuery = "urlRawQuery" SDKReservedPrefix = "ds-" )
View Source
const (
DeviceServiceEventPrefix = "device"
)
Variables ¶
View Source
var SDKVersion string = "0.0.0"
SDKVersion indicates the version of the SDK - will be overwritten by build
View Source
var ServiceVersion string = "0.0.0"
ServiceVersion indicates the version of the device service itself, not the SDK - will be overwritten by build
Functions ¶
func AddReadingTags ¶
func AddReadingTags(reading *dtos.BaseReading)
func InitializeSentMetrics ¶
func InitializeSentMetrics(lc logger.LoggingClient, dic *di.Container)
func SendDeviceAlarm ¶
func SendDeviceAlarm(deviceAlarm models.DeviceAlarm, correlationID string, dic *di.Container)
func SendDeviceStatusUpdate ¶
func SendDeviceStatusUpdate(deviceStatusUpdate *dtos.DeviceStatusUpdate, correlationID string, dic *di.Container)
func UpdateOperatingState ¶
func UpdateOperatingState(name string, state string, lc logger.LoggingClient, dc interfaces.DeviceClient)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.