Documentation ¶
Index ¶
- func AccessLogger(logger logger.Logger) fiber.Handler
- func CSRFMiddleware(session session.Session) fiber.Handler
- func JSONOnly(callback fiber.Handler) fiber.Handler
- func NewCookieSession(cache cache.Cache, secure bool, domain string, sameSite string, ...) fiber.Handler
- func NewHeaderSession(cache cache.Cache, exp time.Duration) fiber.Handler
- func RateLimiter(key string, maxAttempts uint32, ttl time.Duration, c cache.Cache, ...) fiber.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSRFMiddleware ¶
CSRFMiddleware protection middleware
func JSONOnly ¶
func JSONOnly(callback fiber.Handler) fiber.Handler
JSONOnly allow json requests only
func NewCookieSession ¶
func NewCookieSession( cache cache.Cache, secure bool, domain string, sameSite string, exp time.Duration, ) fiber.Handler
NewCookieSession create new cookie based session
this function generate panic on save fail!
func NewHeaderSession ¶
NewHeaderSession create new header based session
this function generate panic on save fail!
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.