session

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

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotAuthenticated = errors.New("this user is not authenticated")

Functions

func CreateSession

func CreateSession(id string, username string) error

Types

type Session

type Session struct {
	Id      string                 `json:"cookie"`
	Session map[string]interface{} `json:"session"`
}

func GetSession

func GetSession(id string) (Session, error)

Jump to

Keyboard shortcuts

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