Releases: posthook/posthook-go
Releases · posthook/posthook-go
v1.2.0
What's new
- WebSocket listener:
Listen()andStream()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
What's New
- Async hooks support:
Ack()andNack()callbacks for long-running webhook processing - See the Async Hooks guide for details
v1.0.0
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-goSee the README for full documentation.