session

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package session provides session middleware to the echo server

Index

Constants

This section is empty.

Variables

View Source
var DefaultSessionConfig = SessionConfig{
	Skipper: middleware.DefaultSkipper,
}

Functions

func LoadAndSave

func LoadAndSave(sessionManager *scs.SessionManager) echo.MiddlewareFunc

LoadAndSave is a middleware function that loads and saves session data using a provided session manager. It takes a `SessionManager` as input and returns a middleware function that can be used with an Echo framework application

func LoadAndSaveWithConfig

func LoadAndSaveWithConfig(config SessionConfig) echo.MiddlewareFunc

LoadAndSaveWithConfig is a middleware that loads and saves session data using a provided session manager configuration. It takes a `SessionConfig` struct as input, which contains the skipper function and the session manager

Types

type SessionConfig

type SessionConfig struct {
	Skipper        middleware.Skipper
	SessionManager *scs.SessionManager
}

Jump to

Keyboard shortcuts

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