verifyrequest

package
v0.0.0-...-6aa5a74 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigDefault = Config{
	Secret:       "",
	Header:       "X-Sublime-Signature",
	Expiration:   5,
	Unauthorized: nil,
}

Functions

func New

func New(config Config) fiber.Handler

Types

type Config

type Config struct {
	Next         func(c *fiber.Ctx) bool
	Secret       string
	Header       string
	Expiration   int
	Unauthorized fiber.Handler
}

type HMACSignature

type HMACSignature struct {
	Timestamp int64
	Signature string
}

Jump to

Keyboard shortcuts

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