Help us shape the future of Go! Take the 2026 Go Developer Survey

cookies

package
v0.88.5 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 8 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