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 capkit.ScopeChecker
Limiter capkit.Limiter
Audit capkit.AuditSink
Clock capkit.Clock
MaxBodyBytes int64
RateLimit capkit.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 capkit.Limiter
Audit capkit.AuditSink
Clock capkit.Clock
MaxBodyBytes int64
RateLimit capkit.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.