Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Base *http.Client
Scope core.ScopeChecker
Limiter core.Limiter
Audit core.AuditSink
Clock core.Clock
MaxBodyBytes int64
RateLimit core.RateLimitSpec
}
Client is the gate-aware HTTPDoer injected into kits. It enforces scope on the initial URL and every redirect hop, and applies per-host rate limiting.
type Fetcher ¶
type Fetcher struct {
Base *http.Client
Limiter core.Limiter
Audit core.AuditSink
Clock core.Clock
MaxBodyBytes int64
RateLimit core.RateLimitSpec
}
Fetcher is the non-target-scoped external download client. It applies rate limiting and audit but deliberately does not enforce project scope (rule updates, GitHub search and threat intel are external infrastructure).
Click to show internal directories.
Click to hide internal directories.