Documentation ¶
Index ¶
- func EnvCodecs() ([]securecookie.Codec, error)
- func Filter(prototype interface{}, cookieName string, store gorilla.Store, opts ...Option) web.Filter
- func GenerateKeyPairs(blockSizes ...int) [][]byte
- func New(req *http.Request, w http.ResponseWriter, store gorilla.Store, ...) error
- func Value(req *http.Request) (interface{}, bool)
- func WrapHandler(prototype interface{}, cookieName string, store gorilla.Store, h http.Handler, ...) http.Handler
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvCodecs ¶
func EnvCodecs() ([]securecookie.Codec, error)
EnvCodecs retrieves the codecs from the environment variables HASH_KEY and BLOCK_KEY
func GenerateKeyPairs ¶
GenerateCodec generates new keypairs suitable for gorilla sessions; blockSizes must be in pairs divisible by 32 by default GenerateCodec will generate a codec with 64, 32
Types ¶
Click to show internal directories.
Click to hide internal directories.