mapping

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const VAR_LEN_PLACEHOLDER = "*"

Variables

This section is empty.

Functions

func CharacteristicToSkeleton

func CharacteristicToSkeleton(characteristic model.Characteristic) (out *interface{}, idToPtr map[string]*interface{}, err error)

func ContentToSkeleton

func ContentToSkeleton(content model.ContentVariable, partial Partial) (out *interface{}, idToPtr map[string][]*interface{}, err error)

func MapActuator

func MapActuator(in interface{}, characteristic model.Characteristic, content model.ContentVariable, partial Partial) (out interface{}, err error)

func MapSensor

func MapSensor(in interface{}, content model.ContentVariable, category model.Characteristic) (out interface{}, err error)

func MapSensors

func MapSensors(in map[string]interface{}, contents map[string]model.ContentVariable, category model.Characteristic, hints []string) (out interface{}, err error)

Types

type Partial

type Partial = *PartialStruct

func NewPartial

func NewPartial() Partial

type PartialStruct

type PartialStruct struct {
	Value *interface{}
}

Jump to

Keyboard shortcuts

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