package
Version:
v0.0.0-...-7d6db92
Opens a new window with list of versions in this module.
Published: Feb 9, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var ConfigDefault = Config{
Next: nil,
Token: "Default",
HeaderName: "X-Token-Middleware",
}
func New(config Config) fiber.Handler
New creates a new middleware handler
type Config struct {
Next func(c *fiber.Ctx) bool
Token string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.