Versions in this module Expand all Collapse all v0 v0.0.3 Mar 26, 2026 v0.0.1 Mar 24, 2026 Changes in this version + const DefaultMaxChars + const DefaultTimeoutSecs + const ProviderDirect + const ProviderExa + var DefaultFallbackOrder = []string + type Config struct + Direct DirectConfig + Exa ExaConfig + Fallbacks []string + Provider string + func ApplyEnvDefaults(cfg *Config) *Config + func ConfigFromEnv() *Config + func (c *Config) WithDefaults() *Config + type DirectConfig struct + CacheTtlSecs int + Enabled *bool + MaxChars int + MaxRedirects int + Readability bool + TimeoutSecs int + UserAgent string + type ExaConfig struct + APIKey string + BaseURL string + Enabled *bool + IncludeText bool + TextMaxCharacters int + type Provider interface + Fetch func(ctx context.Context, req Request) (*Response, error) + Name func() string + type Request struct + ExtractMode string + MaxChars int + URL string + type Response struct + Cached bool + ContentType string + ExtractMode string + Extractor string + Extras map[string]any + FetchedAt string + FinalURL string + Length int + Provider string + RawLength int + Status int + Text string + TookMs int64 + Truncated bool + URL string + Warning string + WrappedLength int + func Fetch(ctx context.Context, req Request, cfg *Config) (*Response, error)