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 EnumNamesCurrentType = map[CurrentType]string{
	CurrentTypeCYCLE: "CYCLE",
	CurrentTypeNONE:  "NONE",
}
View Source
var EnumNamesWatchdogVariant = map[WatchdogVariant]string{
	WatchdogVariantNONE:   "NONE",
	WatchdogVariantCyclic: "Cyclic",
}
View Source
var EnumValuesCurrentType = map[string]CurrentType{
	"CYCLE": CurrentTypeCYCLE,
	"NONE":  CurrentTypeNONE,
}
View Source
var EnumValuesWatchdogVariant = map[string]WatchdogVariant{
	"NONE":   WatchdogVariantNONE,
	"Cyclic": WatchdogVariantCyclic,
}

Functions

func CyclicAddErrorCount

func CyclicAddErrorCount(builder *flatbuffers.Builder, errorCount uint32)

func CyclicAddErrorReaction

func CyclicAddErrorReaction(builder *flatbuffers.Builder, errorReaction flatbuffers.UOffsetT)

func CyclicAddReset

func CyclicAddReset(builder *flatbuffers.Builder, reset bool)

func CyclicEnd

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

func CyclicStart

func CyclicStart(builder *flatbuffers.Builder)

func ErrorReactionAddClass

func ErrorReactionAddClass(builder *flatbuffers.Builder, class flatbuffers.UOffsetT)

func ErrorReactionAddConfiguration

func ErrorReactionAddConfiguration(builder *flatbuffers.Builder, configuration flatbuffers.UOffsetT)

func ErrorReactionAddMaxConsecutiveErrors

func ErrorReactionAddMaxConsecutiveErrors(builder *flatbuffers.Builder, maxConsecutiveErrors uint32)

func ErrorReactionEnd

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

func ErrorReactionStart

func ErrorReactionStart(builder *flatbuffers.Builder)

func TypeAddType

func TypeAddType(builder *flatbuffers.Builder, type_ CurrentType)

func TypeEnd

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

func TypeStart

func TypeStart(builder *flatbuffers.Builder)

func WatchdogAddName

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

func WatchdogAddType

func WatchdogAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT)

func WatchdogAddVariant

func WatchdogAddVariant(builder *flatbuffers.Builder, variant flatbuffers.UOffsetT)

func WatchdogAddVariantType

func WatchdogAddVariantType(builder *flatbuffers.Builder, variantType WatchdogVariant)

func WatchdogEnd

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

func WatchdogStart

func WatchdogStart(builder *flatbuffers.Builder)

Types

type CurrentType

type CurrentType int8

/ Type of watchdog of the task

const (
	/// Task will be monitored regarding the consumed cycle time
	CurrentTypeCYCLE CurrentType = 0
	/// No watchdog used
	CurrentTypeNONE CurrentType = 1
)

func (CurrentType) String

func (v CurrentType) String() string

type Cyclic

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

func GetRootAsCyclic

func GetRootAsCyclic(buf []byte, offset flatbuffers.UOffsetT) *Cyclic

func GetSizePrefixedRootAsCyclic

func GetSizePrefixedRootAsCyclic(buf []byte, offset flatbuffers.UOffsetT) *Cyclic

func (*Cyclic) ErrorCount

func (rcv *Cyclic) ErrorCount() uint32

func (*Cyclic) ErrorReaction

func (rcv *Cyclic) ErrorReaction(obj *ErrorReaction) *ErrorReaction

func (*Cyclic) Init

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

func (*Cyclic) MutateErrorCount

func (rcv *Cyclic) MutateErrorCount(n uint32) bool

func (*Cyclic) MutateReset

func (rcv *Cyclic) MutateReset(n bool) bool

func (*Cyclic) Reset

func (rcv *Cyclic) Reset() bool

func (*Cyclic) Table

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

func (*Cyclic) UnPack

func (rcv *Cyclic) UnPack() *CyclicT

func (*Cyclic) UnPackTo

func (rcv *Cyclic) UnPackTo(t *CyclicT)

type CyclicT

type CyclicT struct {
	ErrorCount    uint32          `json:"errorCount"`
	Reset         bool            `json:"reset"`
	ErrorReaction *ErrorReactionT `json:"errorReaction"`
}

func (*CyclicT) Pack

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

type ErrorReaction

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

func GetRootAsErrorReaction

func GetRootAsErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *ErrorReaction

func GetSizePrefixedRootAsErrorReaction

func GetSizePrefixedRootAsErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *ErrorReaction

func (*ErrorReaction) Init

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

func (*ErrorReaction) MaxConsecutiveErrors

func (rcv *ErrorReaction) MaxConsecutiveErrors() uint32

func (*ErrorReaction) MutateMaxConsecutiveErrors

func (rcv *ErrorReaction) MutateMaxConsecutiveErrors(n uint32) bool

func (*ErrorReaction) Table

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

func (*ErrorReaction) UnPack

func (rcv *ErrorReaction) UnPack() *ErrorReactionT

func (*ErrorReaction) UnPackTo

func (rcv *ErrorReaction) UnPackTo(t *ErrorReactionT)

type ErrorReactionT

type ErrorReactionT struct {
	Class                *common__scheduler__watchdog__errorreaction__fbs.ClassT         `json:"class"`
	Configuration        *common__scheduler__watchdog__errorreaction__fbs.ConfigurationT `json:"configuration"`
	MaxConsecutiveErrors uint32                                                          `json:"maxConsecutiveErrors"`
}

func (*ErrorReactionT) Pack

type Type

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

func GetRootAsType

func GetRootAsType(buf []byte, offset flatbuffers.UOffsetT) *Type

func GetSizePrefixedRootAsType

func GetSizePrefixedRootAsType(buf []byte, offset flatbuffers.UOffsetT) *Type

func (*Type) Init

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

func (*Type) MutateType

func (rcv *Type) MutateType(n CurrentType) bool

/ Type of watchdog of the task

func (*Type) Table

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

func (*Type) Type

func (rcv *Type) Type() CurrentType

/ Type of watchdog of the task

func (*Type) UnPack

func (rcv *Type) UnPack() *TypeT

func (*Type) UnPackTo

func (rcv *Type) UnPackTo(t *TypeT)

type TypeT

type TypeT struct {
	Type CurrentType `json:"type"`
}

/ Type of watchdog of the task

func (*TypeT) Pack

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

type Watchdog

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

func GetRootAsWatchdog

func GetRootAsWatchdog(buf []byte, offset flatbuffers.UOffsetT) *Watchdog

func GetSizePrefixedRootAsWatchdog

func GetSizePrefixedRootAsWatchdog(buf []byte, offset flatbuffers.UOffsetT) *Watchdog

func (*Watchdog) Init

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

func (*Watchdog) MutateVariantType

func (rcv *Watchdog) MutateVariantType(n WatchdogVariant) bool

func (*Watchdog) Name

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

func (*Watchdog) Table

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

func (*Watchdog) Type

func (rcv *Watchdog) Type(obj *Type) *Type

func (*Watchdog) UnPack

func (rcv *Watchdog) UnPack() *WatchdogT

func (*Watchdog) UnPackTo

func (rcv *Watchdog) UnPackTo(t *WatchdogT)

func (*Watchdog) Variant

func (rcv *Watchdog) Variant(obj *flatbuffers.Table) bool

func (*Watchdog) VariantType

func (rcv *Watchdog) VariantType() WatchdogVariant

type WatchdogT

type WatchdogT struct {
	Name    string            `json:"name"`
	Type    *TypeT            `json:"type"`
	Variant *WatchdogVariantT `json:"variant"`
}

func (*WatchdogT) Pack

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

type WatchdogVariant

type WatchdogVariant byte
const (
	WatchdogVariantNONE   WatchdogVariant = 0
	WatchdogVariantCyclic WatchdogVariant = 1
)

func (WatchdogVariant) String

func (v WatchdogVariant) String() string

func (WatchdogVariant) UnPack

type WatchdogVariantT

type WatchdogVariantT struct {
	Type  WatchdogVariant
	Value interface{}
}

func (*WatchdogVariantT) Pack

Jump to

Keyboard shortcuts

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