storage

package
v0.8.37 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieStore

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

func NewCookieStore

func NewCookieStore(cookieName string) *CookieStore

func (*CookieStore) Delete

func (cs *CookieStore) Delete(w http.ResponseWriter)

Delete deletes the session cookie

func (*CookieStore) Get

func (cs *CookieStore) Get(r *http.Request) (string, bool)

Get retrieves the session data from the cookie

func (*CookieStore) Set

func (cs *CookieStore) Set(w http.ResponseWriter, value string, ttl time.Duration)

Set sets the session data as a cookie

Jump to

Keyboard shortcuts

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