Documentation ¶
Index ¶
- func Authenticate(allowToken bool) juliet.ContextMiddleware
- func File(ctx *juliet.Context, next http.Handler) http.Handler
- func Log(ctx *juliet.Context, next http.Handler) http.Handler
- func Logger(ctx *juliet.Context, next http.Handler) http.Handler
- func RedirectOnFailure(ctx *juliet.Context, next http.Handler) http.Handler
- func SourceIP(ctx *juliet.Context, next http.Handler) http.Handler
- func Upload(ctx *juliet.Context, next http.Handler) http.Handler
- func Yubikey(ctx *juliet.Context, next http.Handler) http.Handler
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 ¶
File retrieve the requested file metadata from the metadataBackend and save it in the request context.
func Logger ¶
Logger create a new Logger instance for this request and save it to the request context
func RedirectOnFailure ¶
RedirectOnFailure enable webapp http redirection instead of string error
func SourceIP ¶
SourceIP extract the source IP address from the request and save it to the request context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.