datamodel

package module
v0.0.0-...-39be8c3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MPL-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

View Source
const (
	SENSOR    = 1
	ACTUATOR  = 2
	ATTRIBUTE = 3
	BRANCH    = 4
	STRUCT    = 5
	PROPERTY  = 6
)

Variables

This section is empty.

Functions

func NodetypeToString

func NodetypeToString(nodeType NodeTypes_t) string

func StringToNodetype

func StringToNodetype(nodeType string) uint8

func ValidateToInt

func ValidateToInt(validate string) uint8

func ValidateToString

func ValidateToString(validate uint8) string

Types

type NodeTypes_t

type NodeTypes_t uint8

type Node_t

type Node_t struct {
	Name           string
	NodeType       NodeTypes_t
	Uuid           string
	Description    string
	Datatype       string
	Min            string
	Max            string
	Unit           string
	Allowed        uint8
	AllowedDef     []string
	DefaultAllowed string
	Validate       uint8
	Children       uint8
	Parent         *Node_t
	Child          []*Node_t
}

Jump to

Keyboard shortcuts

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