stepper

package
v0.0.0-...-4fa5cbc Latest Latest
Warning

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

Go to latest
Published: May 16, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedState = "unsupported state"
)

Functions

This section is empty.

Types

type Status

type Status int
const (
	Error     Status = iota
	Completed Status = iota
	Canceled  Status = iota
)

func Run

func Run(ctx context.Context, state interface{}, steps ...Step) (Status, error)

type Step

type Step func(ctx context.Context, cancelFunc context.CancelFunc, state interface{}) error

Jump to

Keyboard shortcuts

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