sessions

package
v0.0.0-...-9984923 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Admin

func Admin(redirect bool) gin.HandlerFunc

func LoggedIn

func LoggedIn(redirect bool) gin.HandlerFunc

func Sessions

func Sessions() gin.HandlerFunc

Types

type NoobSession

type NoobSession struct {
	sessions.Session
}

func Default

func Default(ctx *gin.Context) NoobSession

func (NoobSession) IsAdmin

func (s NoobSession) IsAdmin() bool

func (NoobSession) IsLoggedIn

func (s NoobSession) IsLoggedIn() bool

func (NoobSession) SetM

func (s NoobSession) SetM(data map[string]interface{})

func (NoobSession) Username

func (s NoobSession) Username() string

Jump to

Keyboard shortcuts

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