httpsession

package
v0.0.0-...-19553bc Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultSession

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

func NewAbstractSession

func NewAbstractSession() *DefaultSession

func (*DefaultSession) Clear

func (d *DefaultSession) Clear() Session

func (*DefaultSession) Data

func (d *DefaultSession) Data() map[string]string

func (*DefaultSession) Delete

func (d *DefaultSession) Delete(key string)

func (*DefaultSession) Expire

func (d *DefaultSession) Expire() *time.Time

func (*DefaultSession) GetInt64

func (d *DefaultSession) GetInt64(key string) int64

func (*DefaultSession) GetString

func (d *DefaultSession) GetString(key string) string

func (*DefaultSession) GetStruct

func (d *DefaultSession) GetStruct(key string, obj interface{})

func (*DefaultSession) ID

func (d *DefaultSession) ID() string

func (*DefaultSession) IsExpire

func (d *DefaultSession) IsExpire() bool

func (*DefaultSession) PutInt64

func (d *DefaultSession) PutInt64(key string, value int64) Session

func (*DefaultSession) PutString

func (d *DefaultSession) PutString(key string, value string) Session

func (*DefaultSession) PutStruct

func (d *DefaultSession) PutStruct(key string, value interface{}) Session

func (*DefaultSession) Reload

func (d *DefaultSession) Reload() Session

func (*DefaultSession) Save

func (d *DefaultSession) Save() Session

func (*DefaultSession) SetExpire

func (d *DefaultSession) SetExpire(expire *time.Time) Session

type Session

type Session interface {
	ID() string
	GetString(key string) string
	PutString(key string, value string) Session
	GetInt64(key string) int64
	PutInt64(key string, value int64) Session
	GetStruct(key string, obj interface{})
	PutStruct(key string, value interface{}) Session
	Clear() Session
	Delete(key string)
	Expire() *time.Time
	Save() Session
	Reload() Session
	Data() map[string]string
	SetExpire(expire *time.Time) Session
	IsExpire() bool
}

type SessionProvider

type SessionProvider interface {
	NewSession(expire *time.Time) Session
	/* Readonly */
	Sessions() map[string]Session
	Session(key string) Session
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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