Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { HashKey string `envconfig:"COOKIE_HASH_KEY"` BlockKey string `envconfig:"COOKIE_BLOCK_KEY"` Domain string `envconfig:"COOKIE_DOMAIN"` Name string `envconfig:"COOKIE_NAME"` }
Config holds information for creating a secure cookie.
func LoadConfigFromEnv ¶
func LoadConfigFromEnv() Config
LoadConfigFromEnv will attempt to load an Cookie object from environment variables. If not populated, nil is returned.
Click to show internal directories.
Click to hide internal directories.