fbs

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnumNamesCurrentState = map[CurrentState]string{
	CurrentStateINIT:              "INIT",
	CurrentStateSTOP:              "STOP",
	CurrentStateRUN:               "RUN",
	CurrentStateERROR:             "ERROR",
	CurrentStateSYSERROR:          "SYSERROR",
	CurrentStateSHUTDOWN:          "SHUTDOWN",
	CurrentStateWARNING:           "WARNING",
	CurrentStateSERVICE:           "SERVICE",
	CurrentStateSETUP:             "SETUP",
	CurrentStatePARTIAL_OPERATING: "PARTIAL_OPERATING",
	CurrentStateOPERATING:         "OPERATING",
}
View Source
var EnumValuesCurrentState = map[string]CurrentState{
	"INIT":              CurrentStateINIT,
	"STOP":              CurrentStateSTOP,
	"RUN":               CurrentStateRUN,
	"ERROR":             CurrentStateERROR,
	"SYSERROR":          CurrentStateSYSERROR,
	"SHUTDOWN":          CurrentStateSHUTDOWN,
	"WARNING":           CurrentStateWARNING,
	"SERVICE":           CurrentStateSERVICE,
	"SETUP":             CurrentStateSETUP,
	"PARTIAL_OPERATING": CurrentStatePARTIAL_OPERATING,
	"OPERATING":         CurrentStateOPERATING,
}

Functions

func ComponentAddMetadata

func ComponentAddMetadata(builder *flatbuffers.Builder, metadata flatbuffers.UOffsetT)

func ComponentAddName

func ComponentAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)

func ComponentAddState

func ComponentAddState(builder *flatbuffers.Builder, state flatbuffers.UOffsetT)

func ComponentEnd

func ComponentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func ComponentStart

func ComponentStart(builder *flatbuffers.Builder)

/ Metadata information about the Data Layer child node which will be created for the component

func StateAddState

func StateAddState(builder *flatbuffers.Builder, state CurrentState)

func StateEnd

func StateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func StateStart

func StateStart(builder *flatbuffers.Builder)

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

func GetRootAsComponent

func GetRootAsComponent(buf []byte, offset flatbuffers.UOffsetT) *Component

func GetSizePrefixedRootAsComponent

func GetSizePrefixedRootAsComponent(buf []byte, offset flatbuffers.UOffsetT) *Component

func (*Component) Init

func (rcv *Component) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Component) Metadata

/ Current state of component / Metadata information about the Data Layer child node which will be created for the component

func (*Component) Name

func (rcv *Component) Name() []byte

/ Name of component, must be unique

func (*Component) State

func (rcv *Component) State(obj *State) *State

/ Name of component, must be unique / Current state of component

func (*Component) Table

func (rcv *Component) Table() flatbuffers.Table

func (*Component) UnPack

func (rcv *Component) UnPack() *ComponentT

func (*Component) UnPackTo

func (rcv *Component) UnPackTo(t *ComponentT)

type ComponentT

type ComponentT struct {
	Name     string                     `json:"name"`
	State    *StateT                    `json:"state"`
	Metadata *comm__datalayer.MetadataT `json:"metadata"`
}

/ Information about the component

func (*ComponentT) Pack

type CurrentState

type CurrentState int8

/ Types of system operation state

const (
	///
	CurrentStateINIT CurrentState = 0
	///
	CurrentStateSTOP CurrentState = 1
	///
	CurrentStateRUN CurrentState = 2
	/// At least one error is pending
	CurrentStateERROR CurrentState = 3
	///
	CurrentStateSYSERROR CurrentState = 4
	///
	CurrentStateSHUTDOWN CurrentState = 5
	/// At least one warning is pending
	CurrentStateWARNING CurrentState = 6
	/// User tasks and callables are not executed, action with influence on the real-time behavior can be performed
	CurrentStateSERVICE CurrentState = 7
	/// User tasks and callables will executed, changes to the configuration are permitted, action with influence on the real-time behavior (like app installation) are not allowed
	CurrentStateSETUP CurrentState = 8
	/// At least one but not all user tasks and callables are in OPERATING state
	CurrentStatePARTIAL_OPERATING CurrentState = 9
	/// User tasks and callables will executed, changes to the configuration might not be permitted, action with influence on the real-time behavior (like app installation) are not allowed
	CurrentStateOPERATING CurrentState = 10
)

func (CurrentState) String

func (v CurrentState) String() string

type State

type State struct {
	// contains filtered or unexported fields
}

func GetRootAsState

func GetRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State

func GetSizePrefixedRootAsState

func GetSizePrefixedRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State

func (*State) Init

func (rcv *State) Init(buf []byte, i flatbuffers.UOffsetT)

func (*State) MutateState

func (rcv *State) MutateState(n CurrentState) bool

/ Type selector of system operation state

func (*State) State

func (rcv *State) State() CurrentState

/ Type selector of system operation state

func (*State) Table

func (rcv *State) Table() flatbuffers.Table

func (*State) UnPack

func (rcv *State) UnPack() *StateT

func (*State) UnPackTo

func (rcv *State) UnPackTo(t *StateT)

type StateT

type StateT struct {
	State CurrentState `json:"state"`
}

/ Type selector of system operation state

func (*StateT) Pack

func (t *StateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT

Jump to

Keyboard shortcuts

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