skip

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package skip can skip an entire Action.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Maybe

func Maybe(skipper interface{}, next middleware.Action) middleware.Action

Maybe returns an action that skips immediately if the given p is a Skipper and its Skip method returns true.

Types

type Skipper

type Skipper interface {
	// Skip returns true if the Piper should be skipped.
	Skip(ctx context.Context) bool
	fmt.Stringer
}

Skipper defines a method to skip an entire Piper.

Jump to

Keyboard shortcuts

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