request

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLogin

func CheckLogin(session core.Session, oauth core.OAuthService) gin.HandlerFunc

CheckLogin session

func MustGetUserFrom added in v0.1.8

func MustGetUserFrom(c *gin.Context) *core.User

MustGetUserFrom current context, otherwise panic

func UserFrom

func UserFrom(c *gin.Context) (*core.User, bool)

UserFrom context

func WithUser

func WithUser(c *gin.Context, user *core.User)

WithUser context

Types

This section is empty.

Jump to

Keyboard shortcuts

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