cookies

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	*sessions.CookieStore
	// contains filtered or unexported fields
}

func New

func New(logger *zap.Logger, keyPairs ...[]byte) *Store

func (*Store) Get

func (s *Store) Get(r *http.Request, name string) *sessions.Session

Get returns a session for the given name. It returns a new session if the cookie could not be decoded and validated.

Jump to

Keyboard shortcuts

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