session

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSessionTokenExpired = errors.New("session_token is expired")
View Source
var ErrSessionTokenNotExist = errors.New("session_token do not exist")

Functions

func CheckSessionToken

func CheckSessionToken(sessionToken string) (rbac.Role, error)

func CreateSessionCookie

func CreateSessionCookie(role rbac.Role) http.Cookie

func DeleteSessionCookie

func DeleteSessionCookie(sessionToken string) http.Cookie

func RefreshSessionCookie

func RefreshSessionCookie(sessionToken string) (http.Cookie, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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