middleware

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// RequestTTL asserts incoming requests must have a timestamp within this duration from server's time
	RequestTTL = "1m"
)

Variables

This section is empty.

Functions

func ValidateSlackRequest

func ValidateSlackRequest(signingSecretToken string) func(http.Handler) http.Handler

ValidateSlackRequest validates a request's signature is signed by the provided slack secret token

func ValidateTimestamp

func ValidateTimestamp(next http.Handler) http.Handler

ValidateTimestamp asserts that the incoming request's timestamp is within a reasonable timespan from current time

Types

This section is empty.

Jump to

Keyboard shortcuts

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