cookies

package
v0.0.0-...-dcfd991 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValueTooLong = errors.New("cookie value too long")
	ErrInvalidValue = errors.New("invalid cookie value")
)

Functions

func Read

func Read(c echo.Context, name string) (string, error)

func ReadCookie

func ReadCookie(c echo.Context, name string) (value string, err error)

func Write

func Write(c echo.Context, cookie http.Cookie) error

func WriteCookie

func WriteCookie(c echo.Context, name string, value string, path string, maxAge int)

func WriteEncrypted

func WriteEncrypted(c echo.Context, cookie http.Cookie, secretKey []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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