Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
Graph represent the container of all nodes
func (Graph) GeneratePNG ¶
GeneratePNG will generate a png from the graph dependency on dot
func (Graph) GetOutcomeStatus ¶
GetOutcomeStatus will return the potential outcomes for a curr status
func (Graph) MarshalJSON ¶
MarshalJSON will return json
func (Graph) UnmarshalJSON ¶
UnmarshalJSON will parse a json into a tree of nodes
type Node ¶
type Node struct {
Sources []StatusAction `json:"sources,omitempty"`
Status Status `json:"status"`
Outcomes []StatusAction `json:"outcomes,omitempty"`
}
Node represent a Node in the state graph
type StatusAction ¶
StatusAction represents either an action and its origin state (Source) an action and its state resulting of the action applied (Outcome)
