Documentation ¶
Index ¶
- func NewExit(uuid flows.ExitUUID, destination flows.NodeUUID, name string) flows.Exit
- func NewFlow(uuid flows.FlowUUID, name string, language utils.Language, ...) (flows.Flow, error)
- func NewLocalization() flows.Localization
- func NewNode(uuid flows.NodeUUID, actions []flows.Action, router flows.Router, ...) flows.Node
- func ReadFlow(data json.RawMessage) (flows.Flow, error)
- func ReadLocalization(data json.RawMessage) (flows.Localization, error)
- type FlowObj
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocalization ¶ added in v0.6.2
func NewLocalization() flows.Localization
func NewNode ¶ added in v0.6.2
func NewNode(uuid flows.NodeUUID, actions []flows.Action, router flows.Router, exits []flows.Exit, wait flows.Wait) flows.Node
NewNode creates a new flow node
func ReadFlow ¶
func ReadFlow(data json.RawMessage) (flows.Flow, error)
ReadFlow reads a single flow definition from the passed in byte array
func ReadLocalization ¶ added in v0.6.2
func ReadLocalization(data json.RawMessage) (flows.Localization, error)
ReadLocalization reads entire localization flow segment
Types ¶
Click to show internal directories.
Click to hide internal directories.