sqlsessions

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct {
	sql.DAO
	Codecs  []securecookie.Codec
	Options *sessions.Options
}

func (*Impl) Delete

func (h *Impl) Delete(r *http.Request, w http.ResponseWriter, session *sessions.Session) error

func (*Impl) DeleteExpired

func (h *Impl) DeleteExpired(ctx context.Context, logger log.ZapLogger)

func (*Impl) Get

func (h *Impl) Get(r *http.Request, name string) (*sessions.Session, error)

func (*Impl) GetSession

func (h *Impl) GetSession(r *http.Request) (*sessions.Session, error)

GetSession implements the SessionDAO interface

func (*Impl) Init

func (h *Impl) Init(ctx context.Context, options configx.Values) error

Init handler for the SQL DAO

func (*Impl) New

func (h *Impl) New(r *http.Request, name string) (*sessions.Session, error)

func (*Impl) Save

func (h *Impl) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error

Jump to

Keyboard shortcuts

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