security

package
v0.0.0-...-a4f8eeb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CSRFHeader = "X-CSRF-Token"

Variables

This section is empty.

Functions

func CSRFMiddleware

func CSRFMiddleware() gin.HandlerFunc

func CheckCSRFToken

func CheckCSRFToken(token string) (bool, error)

CheckCSRFToken check csrf token.

func NewCSRFToken

func NewCSRFToken() (string, error)

NewCSRFToken returns new csrf token.

func SecureMiddleware

func SecureMiddleware() gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL