Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { // maximum usage of csrf token MaxUsage int // maximum age for this token to live MaxAge int // name of the cookie to keep csrf token CookieName string // name of the header which the csrf token is sending back HeaderName string // for setting the cookie Secure bool // name for keeping usage counter in redis UsageCounterName string // name for keeping csrf token in redis session SessionName string // name for keeping issued time in redis IssuedName string // Length of csrf token ByteLenth int // path which the cookie is valid Path string // Http methods considered as safe and pass validation SafeMethods []string }
func DefaultOptions ¶
func DefaultOptions() *Options
Click to show internal directories.
Click to hide internal directories.