middleware

package
v9.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	Username, Password string
}

func (BasicAuth) Wrap

func (b BasicAuth) Wrap(next http.Handler) http.Handler

type Middleware

type Middleware interface {
	Wrap(http.Handler) http.Handler
}

func NewBasicAuth

func NewBasicAuth(username, password string) Middleware

Jump to

Keyboard shortcuts

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