handlers

package
v0.0.0-...-16ab5a1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache(exp time.Duration) fiber.Handler

Cache will return a caching middleware

func Errors

func Errors(file string) fiber.ErrorHandler

Errors will process all errors returned to fiber

func GEO

func GEO() fiber.Handler

GEO will fetch IP GEO data from ip-api.com

func GeoIP

func GeoIP() fiber.Handler

GeoIP is a handler for IP address lookups

func NotFound

func NotFound(file string) fiber.Handler

NotFound returns status code 404 along with the given html file

func Render

func Render() fiber.Handler

Render will pass the remove IP value to the template input

Types

This section is empty.

Jump to

Keyboard shortcuts

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