pool/worker: add EventDialFailed with per-attempt error

This commit is contained in:
Jay
2026-06-04 19:34:40 -04:00
parent a574b3e5ae
commit a6d412c31d
3 changed files with 170 additions and 5 deletions
+2
View File
@@ -28,12 +28,14 @@ type PoolEventKind string
const (
EventConnected PoolEventKind = "connected"
EventDisconnected PoolEventKind = "disconnected"
EventDialFailed PoolEventKind = "dial_failed"
)
type PoolEvent struct {
ID string
Kind PoolEventKind
At time.Time
Err error
}
type PoolStats struct {