webhook

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package webhook contains transport-independent helpers for signed webhooks.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidSignature = errors.New("webhook: invalid signature")

ErrInvalidSignature indicates that a webhook signature is missing or invalid.

Functions

func Sign

func Sign(payload []byte, secret string) string

Sign returns the conventional "sha256=<hex>" signature.

func Verify

func Verify(payload []byte, secret, signature string) error

Verify validates a signature using constant-time comparison.

Types

This section is empty.

Jump to

Keyboard shortcuts

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