runs

package
v0.0.0-...-a2de6b1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatRunSummary

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

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

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

type Path []flows.Step

Path is the steps taken in a run

func (Path) ToXValue

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