Documentation
¶
Overview ¶
Package pushsender delivers A2A push notifications to client webhooks.
It replaces the SDK's push.HTTPPushSender, which posts synchronously on the task event path, honors environment proxies even when its SSRF guard is on (the dial-time IP check then validates the proxy, not the webhook), and logs raw URL errors that can include signed query strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// AllowPrivateNetworks disables the SSRF guard so webhooks may resolve to
// loopback/private/link-local addresses. Environment proxies are only
// honored in this mode.
AllowPrivateNetworks bool
// Timeout bounds a single delivery attempt. Defaults to 10s.
Timeout time.Duration
// QueueSize bounds pending notifications per (task, config). Beyond it,
// intermediate events are dropped; final ones (terminal, input or auth
// required) evict the oldest intermediate one. Defaults to 64.
QueueSize int
// MaxConcurrent bounds in-flight HTTP deliveries. Defaults to 8.
MaxConcurrent int
// Logger receives delivery failures. Defaults to slog.Default().
Logger *slog.Logger
// contains filtered or unexported fields
}
Config configures a Sender.
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender is an asynchronous push.Sender. SendPush serializes the event and enqueues it; per-(task, config) order is preserved and a slow webhook never delays task processing.