Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
Codec provides a means of encoding and decoding values to URL-friendly opaque tokens that clients cannot decode or tamper with. It encodes values using JSON before encrypting them, and uses base64 URL encoding for serializing the encrypted bytes to the token string. It's implemented as a thin wrapper around gorilla/securecookie, which already provides the necessary functionality.
Click to show internal directories.
Click to hide internal directories.