tocookie

package
v6.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDuration = time.Hour
View Source
const GeneratedByStr = "trafficcontrol-go-tocookie"
View Source
const Name = "mojolicious"

Variables

This section is empty.

Functions

func GetCookie

func GetCookie(authData string, duration time.Duration, secret string) *http.Cookie

func NewRawMsg

func NewRawMsg(msg, key []byte) string

Types

type Cookie struct {
	AuthData    string `json:"auth_data"`
	ExpiresUnix int64  `json:"expires"`
	By          string `json:"by"`
}

func Parse

func Parse(secret, cookie string) (*Cookie, error)

Jump to

Keyboard shortcuts

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