Documentation
¶
Overview ¶
Package actions owns the versioned authored action and actor-reference format. Runtime IDs and Go function names never appear in serialized action documents.
Index ¶
Constants ¶
View Source
const MaxBytes = 64 * 1024
View Source
const MaxDepth = 16
View Source
const MaxSequences = 64
View Source
const MaxSteps = 1024
View Source
const Version = 1
Variables ¶
View Source
var Schema []byte
Schema is the canonical editor/build schema. SDK bundles ship an exact snapshot.
Functions ¶
Types ¶
type Document ¶
type Document struct {
Schema string `json:"$schema,omitempty"`
Version int `json:"version"`
Sequences []Sequence `json:"sequences"`
}
func (*Document) UnmarshalJSON ¶
type Sequence ¶
type Sequence struct {
Name string `json:"name"`
OnRepeat string `json:"onRepeat,omitempty"`
Steps []Step `json:"steps"`
}
func (*Sequence) UnmarshalJSON ¶
type Step ¶
type Step struct {
Action string `json:"action,omitempty"`
Condition string `json:"condition,omitempty"`
Args map[string]json.RawMessage `json:"args,omitempty"`
WaitFrames uint64 `json:"waitFrames,omitempty"`
Then, Else []Step `json:"-"`
OnFailure []Step `json:"onFailure,omitempty"`
}
func (Step) MarshalJSON ¶
func (*Step) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.