cookiesession

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

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionManager

type SessionManager struct {
	CookieName   string
	CookieDomain string
	// contains filtered or unexported fields
}

func New

func New(cookieName, key, cookieDomain string) *SessionManager

func (*SessionManager) Get

func (s *SessionManager) Get(req *http.Request) map[string]interface{}

func (*SessionManager) Set

func (s *SessionManager) Set(session map[string]interface{}, rw http.ResponseWriter, req *http.Request)

func (*SessionManager) SetCookieExpires

func (s *SessionManager) SetCookieExpires(session map[string]interface{}, cookieExpires int)

Jump to

Keyboard shortcuts

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