session

package
v0.0.0-...-2e7dc78 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(w http.ResponseWriter, r *http.Request)

Types

type Manager

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

func NewManager

func NewManager(cookieName string, maxLifeTime int) *Manager

func (*Manager) SessionDestroy

func (m *Manager) SessionDestroy(w http.ResponseWriter, r *http.Request)

func (*Manager) SessionStart

func (m *Manager) SessionStart(w http.ResponseWriter, r *http.Request) *Session

type Session

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

func Start

func Start(w http.ResponseWriter, r *http.Request) *Session

func (*Session) Delete

func (s *Session) Delete(key interface{}) error

func (*Session) Get

func (s *Session) Get(key interface{}) interface{}

func (*Session) ID

func (s *Session) ID() string

func (*Session) Set

func (s *Session) Set(key, value interface{}) error

Jump to

Keyboard shortcuts

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