Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInvalidToken = errors.New("invalid csrf token") ErrorMissingCookies = errors.New("missing http header cookies") )
Functions ¶
This section is empty.
Types ¶
type Csrf ¶
type Csrf interface { Exists(name, value string) (bool, error) Get(name, value string) (Token, error) Create(token Token) (string, error) Destroy(token Token) error Clean(ignore string) error IsEnabled() bool GetExpiration() time.Duration MustExists(name, value string) bool MustGet(name, value string) Token MustCreate(token Token) string MustDestroy(token Token) MustClean(ignore string) }
Click to show internal directories.
Click to hide internal directories.