auth

package
v0.0.0-...-c477d60 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: GPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(c *gin.Context, user *datatype.User)

Login logs user in

func Logout

func Logout(c *gin.Context)

Logout logs user out

func MustGetUser

func MustGetUser(c *gin.Context) *datatype.User

MustGetUser gets logged in user or panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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