session

package
v0.0.0-...-5870b03 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSessRedisStore

func NewSessRedisStore(redisIns *redis.Client, config configs.RedisConfig) *sessRedisStore

Types

type Session

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

func NewSession

func NewSession(request *http.Request, store sessionStoreInterface, config configs.SessionConfig) (s *Session)

func (*Session) Close

func (s *Session) Close(request *http.Request, response http.ResponseWriter)

func (*Session) Del

func (s *Session) Del(k string)

func (*Session) Destroy

func (s *Session) Destroy()

func (*Session) Get

func (s *Session) Get(value interface{}, k string)

func (*Session) IsExist

func (s *Session) IsExist(k string) bool

func (*Session) Rename

func (s *Session) Rename() (err error)

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