fbs

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 2 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 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 CurrentState

type CurrentState int8
const (
	CurrentStateINIT              CurrentState = 0
	CurrentStateSTOP              CurrentState = 1
	CurrentStateRUN               CurrentState = 2
	CurrentStateERROR             CurrentState = 3
	CurrentStateSYSERROR          CurrentState = 4
	CurrentStateSHUTDOWN          CurrentState = 5
	CurrentStateWARNING           CurrentState = 6
	CurrentStateSERVICE           CurrentState = 7
	CurrentStateSETUP             CurrentState = 8
	CurrentStatePARTIAL_OPERATING CurrentState = 9
	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

func (*State) State

func (rcv *State) State() CurrentState

func (*State) Table

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

func (*State) UnPack added in v1.1.0

func (rcv *State) UnPack() *StateT

func (*State) UnPackTo added in v1.1.0

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

type StateT added in v1.1.0

type StateT struct {
	State CurrentState
}

func (*StateT) Pack added in v1.1.0

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