Documentation
¶
Overview ¶
Package delivery performs a single HTTP delivery to a destination and classifies the result. The HTTP transport is injected so the classification core can be tested without real network calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine delivers events over an injected HTTP client.
type Result ¶
type Result struct {
Outcome core.Outcome
StatusCode int // 0 when no response was received
Snippet string // truncated response body
Duration time.Duration // wall-clock time of the attempt
RetryAfter time.Duration // from a 429 Retry-After header, if present
}
Result is the outcome of one delivery attempt.
Click to show internal directories.
Click to hide internal directories.