session

package
v0.0.0-...-f06e5ea Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package session handles saving/loading users to/from sessions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearSession

func ClearSession(writer http.ResponseWriter, request *http.Request) error

func InitSessionStorage

func InitSessionStorage()

LoadEnvironmentVariables starts up session storage or crashes the program with an error

func LoadUserFromSession

func LoadUserFromSession(conn *database.Conn, request *http.Request, user *model.User) (bool, error)

func SaveUserInSession

func SaveUserInSession(writer http.ResponseWriter, request *http.Request, user *model.User) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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