session

package
v0.0.0-...-95527fa Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Gen model.General
	// contains filtered or unexported fields
}

Session contains sessions Session

func Get

func Get(r *http.Request) (s Session, httpStatus int)

Get sets Tokens

func New

func New(w http.ResponseWriter, g model.General) (s Session, alreadyActive bool)

New creates new Session

func (*Session) Close

func (s *Session) Close(w http.ResponseWriter)

Close clears all session data and deletes cookies.

func (*Session) Refresh

func (s *Session) Refresh(w http.ResponseWriter) (success bool)

Refresh sets Tokens

Jump to

Keyboard shortcuts

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