common

package
v2.0.0-dev.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvInstanceName = "EDGEX_INSTANCE_NAME"

	ConfigStemDevice = "edgex/devices/"
	APIV2SecretRoute = v2.ApiBase + "/secret"

	GetCmdMethod = "get"
	SetCmdMethod = "set"

	CorrelationHeader = clients.CorrelationHeader
	URLRawQuery       = "urlRawQuery"
	SDKReservedPrefix = "ds-"
)

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 SendEvent

func SendEvent(event *dtos.Event, correlationID string, dic *di.Container)

func UpdateLastConnected

func UpdateLastConnected(name string, lc logger.LoggingClient, dc interfaces.DeviceClient)

func UpdateOperatingState

func UpdateOperatingState(name string, state string, lc logger.LoggingClient, dc interfaces.DeviceClient)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL