handler

package
v0.0.0-...-041ddd6 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CsrfProtection = csrf.New(csrf.Config{
	KeyLookup:      "form:_csrf",
	CookieName:     "csrf_",
	CookieSameSite: "Strict",
	Expiration:     1 * time.Hour,
	KeyGenerator:   utils.UUIDv4,
	ContextKey:     "token",
	ErrorHandler:   csrfErrorHandler,
	SingleUseToken: true,
})

Functions

func DoConvert

func DoConvert(c *fiber.Ctx) error

DoConvert handler. HTTP method POST.

func Index

func Index(c *fiber.Ctx) error

Index handler. HTTP method GET.

Types

This section is empty.

Jump to

Keyboard shortcuts

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