middlewares

package
v0.0.0-...-5b087d4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(next http.HandlerFunc) http.HandlerFunc

Logger logs the current request to the console printing the date, HTTP method, path and elapsed time

func RequireAuthentication

func RequireAuthentication(a *app.App, next http.HandlerFunc, admin bool) http.HandlerFunc

TODO: Create error struct that we can use instead of calling controllers?

func RequireRefreshToken

func RequireRefreshToken(a *app.App, next http.HandlerFunc) http.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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