cookies

package
v0.0.0-...-758381b Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//encKey = []byte("a very very very very secret key") // 32 bytes
	CookieNotFoundError = errors.New("Cookie not found present")
)

Functions

This section is empty.

Types

type Encrypted

type Encrypted struct {
	Name string
	Key  *rsa.PrivateKey
	Path string
	// contains filtered or unexported fields
}

func (*Encrypted) GetValue

func (c *Encrypted) GetValue(r *http.Request) (string, error)

func (*Encrypted) SetValue

func (c *Encrypted) SetValue(value string, expires time.Time, domain string, w http.ResponseWriter) error

Jump to

Keyboard shortcuts

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