flow

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExitCode

type ExitCode int

ExitCode is a value used in a call to panic to signify that code execution should be stopped, before/after listeners executed and finally that the app whould exit with the provided exit code

type Step

type Step struct {
	Do      func()
	Success *Step
	Error   *Step
	Desc    string
	Exiter  func(code int)
}

Step is the building block of execution flow. It has a code block to run, a success step to go to if the former succeeds, or go to an error step otherwise

func (*Step) Run

func (s *Step) Run(p interface{})

Run call the code block of the step, moves to the success step if the call went ok, opr the the error step otherwise

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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