session

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2017 License: Apache-2.0 Imports: 5 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUser

func SetUser(c *gin.Context)

SetUser is used as a middleware to set the current user.

func User

func User(c *gin.Context) *model.User

User fetches the current user from the context.

func UserMust

func UserMust(c *gin.Context)

UserMust enforces the fetch of the current user from the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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