auth

package
v0.0.0-...-24c7f3d Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentUser

func CurrentUser(context router.Context) *users.User

CurrentUser returns the saved user (or an empty anon user) for the current session cookie

func CurrentUserFilter

func CurrentUserFilter(context router.Context) error

CurrentUserFilter can be added as a pre-action filter to set the current user on the context if required.

Types

This section is empty.

Jump to

Keyboard shortcuts

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