expressions

package
v0.10.20 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextTopLevels = []string{"channel", "child", "contact", "date", "extra", "flow", "parent", "step"}

ContextTopLevels are the allowed top-level identifiers in legacy expressions, i.e. @contact.bar is valid but @foo.bar isn't

Functions

func MigrateTemplate

func MigrateTemplate(template string, extraAs ExtraVarsMapping, defaultToSelf bool) (string, error)

MigrateTemplate will take a legacy expression and translate it to the new syntax

Types

type ExtraVarsMapping

type ExtraVarsMapping int

ExtraVarsMapping defines how @extra.* variables should be migrated

const (
	ExtraAsWebhookJSON ExtraVarsMapping = iota
	ExtraAsTriggerParams
	ExtraAsFunction
)

different ways of mapping @extra in legacy flows

type Resolvable added in v0.10.3

type Resolvable interface {
	Resolve(key string) interface{}
	String() string
}

Jump to

Keyboard shortcuts

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