middleware

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthN

func AuthN(ai AuthInfo) func(next http.Handler) http.Handler

func CORS

func CORS(next http.Handler) http.Handler

CORS is middleware to handle CORS

func TrimTrailingSlash

func TrimTrailingSlash(next http.Handler) http.Handler

TrimTrailingSlash removes the trailing slash

Types

type AuthInfo

type AuthInfo struct {
	Log      logrus.Ext1FieldLogger
	Verifier *oidc.IDTokenVerifier
	Timeout  time.Duration
	Bypass   [][]string //method path
}

Jump to

Keyboard shortcuts

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