Versions in this module Expand all Collapse all v1 v1.2.0 Sep 10, 2020 v1.0.2 Aug 29, 2020 Changes in this version + type Step interface + Cancel func(ctx context.Context, stepIndex int, taskObj Task) error + Do func(ctx context.Context, stepIndex int, taskObj Task) *StepResult + Name func() string + type StepResult struct + Err error + Result interface{} + StepName string + type Task interface + GetStepResult func(stepIndex int) *StepResult + GetTaskArgs func() interface{} + Name func() string + Rollback func() + Run func() (*TaskResult, error) + func MakeTask(ctx context.Context, name string, observer TaskObserver, taskArg interface{}, ...) (Task, error) + type TaskEvent struct + Info string + type TaskObserver interface + OnNotify func(*TaskEvent) + type TaskResult struct + Result []*StepResult