session

package
v0.0.0-...-6d7316e Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Length int = 30

Variables

View Source
var LastCleaned time.Time = time.Now()
View Source
var Sessions = map[string]models.Session{} // session ID, session
View Source
var Users = map[string]models.User{} // user ID, user

Functions

func AlreadyLoggedIn

func AlreadyLoggedIn(w http.ResponseWriter, req *http.Request) bool

func Clean

func Clean()

func GetUser

func GetUser(w http.ResponseWriter, req *http.Request) models.User

func Show

func Show()

for demonstration purposes

Types

This section is empty.

Jump to

Keyboard shortcuts

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