tocookie

package
v8.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AccessToken = "access_token"
View Source
const BearerToken = "Bearer"
View Source
const DefaultDuration = time.Hour
View Source
const GeneratedByStr = "trafficcontrol-go-tocookie"
View Source
const MojoCookie = "mojoCookie"
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, error)

Jump to

Keyboard shortcuts

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