routes

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PublicLimter = rate_limiter.New(rate_limiter.Config{
	Max:        3,
	Expiration: 1 * time.Second,
	KeyGenerator: func(c *fiber.Ctx) string {
		return c.Get("x-forwarded-for")
	},
	LimitReached:      PublicMaxedOut,
	LimiterMiddleware: rate_limiter.SlidingWindow{},
})

Functions

func PublicMaxedOut

func PublicMaxedOut(c *fiber.Ctx) error

func SetupAdminRoutes

func SetupAdminRoutes(s *server.Server)

func SetupPublicRoutes

func SetupPublicRoutes(s *server.Server)

func UserBlank added in v1.0.2

func UserBlank(s *server.Server) fiber.Handler

func UserEdit added in v1.0.2

func UserEdit(s *server.Server) fiber.Handler

func UserNewForm added in v1.0.2

func UserNewForm(s *server.Server) fiber.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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