cookie

package
v1.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCookieSignValue

func GenerateCookieSignValue(data string) (string, error)

func NewCookieWithDomain

func NewCookieWithDomain(name, value, domain string) *http.Cookie

func NewCookieWithDomainAndMaxAge

func NewCookieWithDomainAndMaxAge(name, value, domain string, maxAge int) *http.Cookie

func SignVerify

func SignVerify(data *http.Cookie) (string, bool)

Types

type SignValue

type SignValue struct {
	IssuerAt string
	Data     string
	Sign     string
}

Jump to

Keyboard shortcuts

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