session

package
v0.0.0-...-57fdbbf Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sessioner

type Sessioner interface {
	GetValue(name string) interface{}
	Save(r *http.Request, w http.ResponseWriter) error
	SetValue(name string, value string)
	Init(request *http.Request) (Sessioner, error)
}

Sessioner Sessioner

type SessionerAdapter

type SessionerAdapter struct {
	SessionKey string

	Values map[interface{}]interface{}
	Store  *sessions.CookieStore
	// contains filtered or unexported fields
}

SessionerAdapter SessionerAdapter

func (SessionerAdapter) GetValue

func (s SessionerAdapter) GetValue(name string) interface{}

GetValue GetValue

func (SessionerAdapter) Init

func (s SessionerAdapter) Init(request *http.Request) (Sessioner, error)

Init Init

func (SessionerAdapter) Save

Save Save

func (SessionerAdapter) SetValue

func (s SessionerAdapter) SetValue(name string, value string)

SetValue SetValue

Jump to

Keyboard shortcuts

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