middleware

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action func(ctx *context.Context) error

Action is a function that takes a context and returns an error.

func ErrHandler

func ErrHandler(action Action) Action

ErrHandler handles an action error, ignoring and logging pipe skipped errors.

func Logging

func Logging(title string, next Action) Action

Logging pretty prints the given action and its title.

Jump to

Keyboard shortcuts

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