variable

package
v1.1.46 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CESetType = "com.plugis.variable.set"

cloud event variable set type

Variables

This section is empty.

Functions

func NewVariableSetEvent

func NewVariableSetEvent(variables Variables) *cloudevents.Event

Types

type Variable

type Variable struct {
	Name      string      `json:"name"`
	Type      string      `json:"type"`
	Value     interface{} `json:"value"`
	Unit      string      `json:"unit,omitempty"`
	Timestamp time.Time   `json:"ts,omitempty"`
	Comment   string      `json:"comment,omitempty"`
}

Variable represents represents a variable value

type Variables

type Variables []Variable

Variables is an array of variable values

Jump to

Keyboard shortcuts

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