definition

package
v0.27.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2019 License: AGPL-3.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

View Source
const CurrentSpecVersion = "12.0"

Variables

This section is empty.

Functions

func NewExit added in v0.4.0

func NewExit(uuid flows.ExitUUID, destination flows.NodeUUID, name string) flows.Exit

NewExit creates a new exit

func NewFlow added in v0.6.2

func NewFlow(uuid assets.FlowUUID, name string, language utils.Language, flowType flows.FlowType, revision int, expireAfterMinutes int, localization flows.Localization, nodes []flows.Node, ui flows.UI) flows.Flow

NewFlow creates a new flow

func NewFlowAssets added in v0.15.0

func NewFlowAssets(source assets.AssetSource) flows.FlowAssets

NewFlowAssets creates a new flow assets

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, wait flows.Wait, router flows.Router, exits []flows.Exit) flows.Node

NewNode creates a new flow node

func NewUI added in v0.15.1

func NewUI() flows.UI

NewUI creates a new UI section

func NewUINodeDetails added in v0.15.1

func NewUINodeDetails(
	x, y int,
	nodeType flows.UINodeType,
	uiNodeConfig flows.UINodeConfig,
) flows.UINodeDetails

NewUINodeDetails creates a ui configuration for a specific

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

This section is empty.

Jump to

Keyboard shortcuts

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