//
pkg.gl
Category
github.com/golangltd/leafltd
src
golang.org
x
net
xsrftoken
package
0.0.0-20201102054017-282493799a89
Repository:
https://github.com/golangltd/leafltd.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
0
Files
70 SLOC
#
Functions
Generate
Generate returns a URL-safe secure XSRF token that expires in 24 hours.
Valid
Valid reports whether a token is a valid, unexpired token returned by Generate.
#
Constants
Timeout
Timeout is the duration for which XSRF tokens are valid.