Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func VerifyPayload ¶
VerifyPayload verifies a webhook payload signature on the receive side, discarding the signed delivery ID. Prefer VerifyPayloadID so replayed delivery IDs can be deduplicated.
func VerifyPayloadID ¶ added in v11.3.0
VerifyPayloadID verifies a webhook payload signature on the receive side and returns the signed delivery ID. The ID is covered by the HMAC so receivers can safely use it to deduplicate replayed deliveries within the timestamp window.
Wire format (v11.2+): signature input is "timestamp.id.body".
Types ¶
type Option ¶
type Option func(*Sender)
func MaxAttempts ¶
MaxAttempts sets the maximum delivery attempts. Non-positive values use the documented default of three attempts.
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
func (*Sender) Send ¶
Send delivers a webhook using a background context. Use SendContext when the caller needs request and retry cancellation.