sessions

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(name string, store Store) gin.HandlerFunc

Middleware 在gin-contrib/sessions上做封装

Types

type Session

type Session interface {
	sessions.Session
	Refresh() error
}

func Ctx

func Ctx(ctx *gin.Context) Session

type Store

type Store interface {
	sessions.Store
	Refresh(r *http.Request, name string, session *gorillaSession.Session) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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