package
Version:
v0.0.0-...-9df0f26
Opens a new window with list of versions in this module.
Published: Mar 8, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var Limiter = limiter.New(limiter.Config{
Max: 100,
LimitReached: func(ctx *fiber.Ctx) error {
return ctx.Status(fiber.StatusTooManyRequests).Render("pages/error", map[string]any{
"code": fiber.StatusTooManyRequests,
"message": "Too Many Requests, Please Try Again Later",
})
},
})
func CatchServerError(ctx *fiber.Ctx, err error) error
func CheckAuth(ctx *fiber.Ctx) error
func SetRealIpClient(ctx *fiber.Ctx) error
SetRealIpClient TODO: It's Really work?
Source Files
¶
Click to show internal directories.
Click to hide internal directories.