session

package module
v0.0.0-...-c7255b3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Invalid = -1

Variables

This section is empty.

Functions

This section is empty.

Types

type MaxAge

type MaxAge int

func (MaxAge) Apply

func (m MaxAge) Apply(s *RequestSession)

type MaxLength

type MaxLength int

func (MaxLength) Apply

func (m MaxLength) Apply(s *RequestSession)

type MinAge

type MinAge int

func (MinAge) Apply

func (m MinAge) Apply(s *RequestSession)

type Option

type Option interface {
	Apply(s *RequestSession)
}

type RequestSession

type RequestSession struct {
	Request *http.Request
	Store   sessions.Store
}

func (*RequestSession) Get

func (s *RequestSession) Get(name string) (*sessions.Session, error)

func (*RequestSession) Save

type Session

type Session interface {
	Get(name string) (*sessions.Session, error)
	Save(w http.ResponseWriter, ss *sessions.Session) error
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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