tasks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig added in v0.1.1

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func Run

func Run(ctx context.Context, tasks []Task) error

Types

type RetryTaskConfig added in v0.1.1

type RetryTaskConfig struct {
	Logger     micrologger.Logger
	Underlying Task
}

type Task

type Task func(ctx context.Context) error

Task represent a generic step in a pipeline.

func NewRetryTask added in v0.1.1

func NewRetryTask(config RetryTaskConfig) (Task, error)

Jump to

Keyboard shortcuts

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