package
Version:
v0.25.0
Opens a new window with list of versions in this module.
Published: Dec 20, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
type Condition struct {
Arguments []string `validate:"required" json:"arguments"`
FriendlyName string `validate:"required" json:"friendly_name"`
Type string `validate:"required" json:"type"`
Value string `validate:"required" json:"value"`
}
type State struct {
Name string `validate:"required" json:"name"`
Properties interface{} `validate:"required" json:"properties"`
Transitions []Transition `validate:"required" json:"transitions"`
Type string `validate:"required" json:"type"`
}
ToString marshalls the struct to a json string
Validate checks the state is correctly configured
type Transition struct {
Event string `validate:"required" json:"event"`
Next *string `json:"next,omitempty"`
Conditions *[]Condition `json:"conditions,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.