tocookie

package
v7.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 9 Imported by: 15

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