middleware

package
v0.0.0-...-1a51cf5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(allowToken bool) juliet.ContextMiddleware

Authenticate verify that a request has either a whitelisted url or a valid auth token

func File

func File(ctx *juliet.Context, next http.Handler) http.Handler

File retrieve the requested file metadata from the metadataBackend and save it in the request context.

func Log

func Log(ctx *juliet.Context, next http.Handler) http.Handler

Log the http request

func Logger

func Logger(ctx *juliet.Context, next http.Handler) http.Handler

Logger create a new Logger instance for this request and save it to the request context

func RedirectOnFailure

func RedirectOnFailure(ctx *juliet.Context, next http.Handler) http.Handler

RedirectOnFailure enable webapp http redirection instead of string error

func SourceIP

func SourceIP(ctx *juliet.Context, next http.Handler) http.Handler

SourceIP extract the source IP address from the request and save it to the request context

func Upload

func Upload(ctx *juliet.Context, next http.Handler) http.Handler

Upload retrieve the requested upload metadata from the metadataBackend and save it to the request context.

func Yubikey

func Yubikey(ctx *juliet.Context, next http.Handler) http.Handler

Yubikey verify that a valid OTP token has been provided

Types

This section is empty.

Jump to

Keyboard shortcuts

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