Skip to content

Releases: posthook/posthook-go

v1.2.0

16 Mar 18:26

Choose a tag to compare

What's new

  • WebSocket listener: Listen() and Stream() APIs for real-time hook delivery via persistent WebSocket connection
  • Result type: Ack(), Accept(timeout), Nack(err) for handler responses
  • Auth close codes: 4001/4003 abort immediately without reconnecting
  • Context cancellation: Clean shutdown when context is cancelled
  • HTTP fallback: Automatic fallback to HTTP delivery when no listener is connected

See the README for usage examples.

v1.1.0

05 Mar 22:13

Choose a tag to compare

What's New

  • Async hooks support: Ack() and Nack() callbacks for long-running webhook processing
  • See the Async Hooks guide for details

v1.0.0

26 Feb 18:11

Choose a tag to compare

posthook-go v1.0.0

The official Go SDK for Posthook — schedule webhooks and deliver them reliably.

Features

  • Schedule hooks with relative delay, absolute UTC time, or local time with timezone
  • Manage hooks: get, list, delete with auto-pagination
  • Bulk operations: retry, replay, cancel (by IDs or by filter)
  • Webhook signature verification with configurable tolerance
  • Typed errors for precise error handling
  • Quota tracking on every response

Install

go get github.com/posthook/posthook-go

See the README for full documentation.