tasks

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 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

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func Run

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

Types

type RetryTaskConfig

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

func NewRetryTask(config RetryTaskConfig) (Task, error)

Jump to

Keyboard shortcuts

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