quickid

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QuickIdGateway        = "gateway"
	QuickIdNode           = "node"
	QuickIdSource         = "source"
	QuickIdField          = "field"
	QuickIdTask           = "task"
	QuickIdSchedule       = "schedule"
	QuickIdHandler        = "handler"
	QuickIdFirmware       = "firmware"
	QuickIdDataRepository = "data_repository"
	QuickIdForwardPayload = "forward_payload"
)

entity quick id prefix

Variables

This section is empty.

Functions

func EntityKeyValueMap

func EntityKeyValueMap(quickID string) (string, map[string]string, error)

EntityKeyValueMap converts quick id to referable map returns entityType, keyValueMap, error

func GetQuickID

func GetQuickID(entity interface{}) (string, error)

GetQuickID returns quick id of the entity

func IsValidQuickID

func IsValidQuickID(quickID string) bool

IsValidQuickID says is it in quikID format

Types

This section is empty.

Jump to

Keyboard shortcuts

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