webhook

package
v0.28.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidEvent       = fmt.Errorf("invalid event")
	ErrInvalidSignature   = fmt.Errorf("invalid signature")
	ErrVerificationFailed = fmt.Errorf("verification failed")
	ErrTimestampExpired   = fmt.Errorf("timestamp expired")

	EventExpiryDuration = time.Minute * 10
)

Functions

func ParseAndValidateEvent

func ParseAndValidateEvent(data []byte, hexKey string, suppliedHexMAC string) (*frontierv1beta1.WebhookEvent, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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