session

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(redisPool *redis.Pool, cfg config.Config, maxAge time.Duration) (*Factory, error)

func (*Factory) Build

func (f *Factory) Build(ctx *RequestContext, sessType string) (*Session, error)

type RequestContext

type RequestContext struct {
	Saver    *Saver
	Registry *sessions.Registry
}

type Saver

type Saver struct {
	// contains filtered or unexported fields
}

func NewSaver

func NewSaver(log logutil.Log) *Saver

func (Saver) FinalizeHTTP

func (s Saver) FinalizeHTTP(r *http.Request, w http.ResponseWriter) error

func (*Saver) Save

func (s *Saver) Save(sess *sessions.Session)

type Session

type Session struct {
	// contains filtered or unexported fields
}

func (*Session) Delete

func (s *Session) Delete()

func (Session) GetValue

func (s Session) GetValue(key string) interface{}

func (Session) GoString

func (s Session) GoString() string

func (*Session) Set

func (s *Session) Set(k string, v interface{})

Jump to

Keyboard shortcuts

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