Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookieTool ¶
type CookieTool struct { // Returns a list of cipher.Block object that should be used for // processing cookies. Cookies will be decrypted with all the keys // in order to find one that is valid and will be encrypted with the // first in the list. This allows rotation of keys without disruption. AESKeys func(context.Context) ([]cipher.Block, error) }
Handles the encrypting and decrypting of data in cookies.
type Time ¶
Acts like a time.Time object, but encodes to and from a unix epoch to save space. Because this converts to float and back it will lose precision in the sub-second values, typically at most in the micro second range.
func (*Time) MarshalText ¶
func (*Time) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.