component

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBG

func NewBG() *wrap

func NewEnsure

func NewEnsure(name string) *ensure

func NewGroup

func NewGroup(name string) *group

func NewIgnore

func NewIgnore() *wrap

func NewRetry

func NewRetry(tries int, delay time.Duration) *wrap

func NewSuite

func NewSuite(name string) *group

func NewWrap

func NewWrap(name string, wrapper WrapFn) *wrap

Types

type Ensure

type Ensure interface {
	gestalt.Component
	First(gestalt.Component) Ensure
	Run(gestalt.Component) Ensure
	Finally(gestalt.Component) Ensure
}

func Compose

func Compose(steps ...Ensure) Ensure

steps[0].Run(steps[1].Run(...steps[N]))

type Group

type Group interface {
	gestalt.CompositeComponent
	Run(gestalt.Component) Group
}

type Wrap

type Wrap interface {
	gestalt.Component
	Child() gestalt.Component
	Run(gestalt.Component) gestalt.Component
}

type WrapFn

type WrapFn func(Wrap, gestalt.Evaluator) error

Jump to

Keyboard shortcuts

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