auth

package
Version: v0.0.0-...-00b2d59 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2015 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(fn UserReq) http.HandlerFunc

CheckAuth checks authentication and

func New

func New(r *mux.Router)

New initalizes a new auth router.

Types

type UserReq

type UserReq func(http.ResponseWriter, *http.Request, *models.User)

UserReq is a request by an authenticated user.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL