middleware

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 7 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(name string) echo.MiddlewareFunc

Logger logs relevant information about the request and the response

func RequireUser

func RequireUser(h echo.HandlerFunc) echo.HandlerFunc

RequireUser redirects to the login page if the user is not logged in

func Session

func Session() echo.MiddlewareFunc

Session logs the user in using the configured session service

Types

type Func

type Func echo.MiddlewareFunc

Func wraps the echo middleware func

Jump to

Keyboard shortcuts

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