Documentation ¶
Index ¶
- type CSRF
- func (c *CSRF) GenerateToken() string
- func (c *CSRF) GetCookie(r *http.Request) string
- func (c *CSRF) IsValid(token, headerToken string) bool
- func (c *CSRF) Middleware(next http.Handler) http.Handler
- func (c *CSRF) SetCookie(w http.ResponseWriter, token string)
- func (c *CSRF) VerifyToken(r *http.Request) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSRF ¶
type CSRF struct {
// contains filtered or unexported fields
}
func (*CSRF) GenerateToken ¶
Click to show internal directories.
Click to hide internal directories.