internal

package
v0.0.0-...-0cbb5ad Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodecsFromPairs

func CodecsFromPairs(keyPairs []string) []securecookie.Codec

CodecsFromPairs returns a slice of securecookie.Codec instances, if keyPairs is empty, it would use a default hash key to make sure at least one Codec is returned.

func Decode

func Decode(data []byte, session *sessions.Session) error

Decode decodes session values from bytes.

func Encode

func Encode(session *sessions.Session) ([]byte, error)

Encode encodes session values to bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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