sessions

package
v0.0.0-...-97bb505 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(store Store) echo.MiddlewareFunc

Types

type Session

type Session struct {
	VisitCount int `json:"visitCount"`
}

type Store

type Store interface {
	Get(string) (Session, error)
	Set(string, Session) error
}

func NewMemoryStore

func NewMemoryStore() Store

func NewRedisStore

func NewRedisStore() Store

Jump to

Keyboard shortcuts

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