package
Version:
v0.0.0-...-6aa5a74
Opens a new window with list of versions in this module.
Published: Jan 26, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 8
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{
Secret: "",
Header: "X-Sublime-Signature",
Expiration: 5,
Unauthorized: nil,
}
func New(config Config) fiber.Handler
type Config struct {
Next func(c *fiber.Ctx) bool
Secret string
Expiration int
Unauthorized fiber.Handler
}
type HMACSignature struct {
Timestamp int64
Signature string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.