definition

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: AGPL-3.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

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 flows.FlowUUID, name string, language utils.Language, expireAfterMinutes int, localization flows.Localization, nodes []flows.Node, ui map[string]interface{}) (flows.Flow, error)

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

type FlowObj added in v0.6.2

type FlowObj = flow

Jump to

Keyboard shortcuts

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