skip

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Running

func Running(skipAct Action, act middleware.Action) middleware.Action

Running checks if a skip condition is satisfied before invoking the action itself. When used within a middleware chain, any wrap actions will be skipped if the skip condition resolves to true

Types

type Action

type Action func(ctx *context.Context) bool

Action defines a function that supports the skipping of future middleware in the chain. Action is defined with the same method signature as task.Runner Skip(), allow taks to be transparently wrapped

Jump to

Keyboard shortcuts

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