delaymw

package
v0.0.0-...-83625b3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MIDDLEWARE_DEPENDENCY_DELAY = "*delaymw.DelayMiddelware"

Variables

This section is empty.

Functions

This section is empty.

Types

type DelayMiddelware

type DelayMiddelware struct {
	middleware.NoDependencies
	// contains filtered or unexported fields
}

DelayMiddelware blocks the execution for d duration.

This middleware can be useful for testing / debugging purposes.

func New

func (*DelayMiddelware) Wrap

func (d *DelayMiddelware) Wrap(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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