Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSRF ¶
type CSRF interface {
// Generate returns a CSRF token suitable for inclusion in a form
Generate(http.ResponseWriter, *http.Request) string
// Check returns true if the given token is valid for the given request
Check(*http.Request, string) bool
}
CSRF handles generating a csrf value, and checking the submitted value
Source Files
¶
- cookie.go
- fake.go
- interfaces.go
Click to show internal directories.
Click to hide internal directories.