middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAuth = Auth{}
View Source
var RedirectParam string = "return_url"

Functions

func ProxyGatewayMW

func ProxyGatewayMW(next echo.HandlerFunc) echo.HandlerFunc

Types

type Auth

type Auth struct {
	Authenticator func(echo.Context) error
	Unauthorized  func(echo.Context) error
}

func LoginAuth

func LoginAuth(loginURL string, redirectType RedirectType) *Auth

func (Auth) Func

func (a Auth) Func() echo.MiddlewareFunc

type RedirectType

type RedirectType string
const (
	RedirectTypeHttp RedirectType = "http_redirect"
	RedirectTypeJson RedirectType = "json_redirect"
)

Jump to

Keyboard shortcuts

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