Back to godoc.org

Package session

v0.9.1-0...-6ae9f76
Latest Go to latest

The highest tagged major version is .

Published: Jul 4, 2020 | License: MIT | Module: github.com/pendexgabo/echo-contrib

Index

Variables

var (
	// DefaultConfig is the default Session middleware config.
	DefaultConfig = Config{
		Skipper: middleware.DefaultSkipper,
	}
)

func Get

func Get(name string, c echo.Context) (*sessions.Session, error)

Get returns a named session.

func Middleware

func Middleware(store sessions.Store) echo.MiddlewareFunc

Middleware returns a Session middleware.

func MiddlewareWithConfig

func MiddlewareWithConfig(config Config) echo.MiddlewareFunc

MiddlewareWithConfig returns a Sessions middleware with config. See `Middleware()`.

type Config

type Config struct {
	// Skipper defines a function to skip middleware.
	Skipper middleware.Skipper

	// Session store.
	// Required.
	Store sessions.Store
}

Config defines the config for Session middleware.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier