runs

package
v0.197.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: AGPL-3.0, AGPL-3.0-or-later Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatRunSummary added in v0.50.0

func FormatRunSummary(env envs.Environment, run flows.RunSummary) string

FormatRunSummary formats an instance of the RunSummary interface

func NewRun

func NewRun(session flows.Session, flow flows.Flow, parent flows.Run) flows.Run

NewRun initializes a new context and flow run for the passed in flow and contact

func NewStep added in v0.24.0

func NewStep(node flows.Node, arrivedOn time.Time) flows.Step

NewStep creates a new step

func ReadRun

func ReadRun(session flows.Session, data json.RawMessage, missing assets.MissingCallback) (flows.Run, error)

ReadRun decodes a run from the passed in JSON. Parent run UUID is returned separately as the run in question might be loaded yet from the session.

func ReadRunSummary added in v0.8.0

func ReadRunSummary(sessionAssets flows.SessionAssets, data json.RawMessage, missing assets.MissingCallback) (flows.RunSummary, error)

ReadRunSummary reads a run summary from the given JSON

Types

type Path added in v0.9.2

type Path []flows.Step

Path is the steps taken in a run

func (Path) ToXValue added in v0.32.0

func (p Path) ToXValue(env envs.Environment) types.XValue

ToXValue returns a representation of this object for use in expressions

Jump to

Keyboard shortcuts

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