Documentation
¶
Overview ¶
Package config provides shared configuration types that are used across multiple packages. This package should have no dependencies on other vacuum packages to avoid import cycles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchConfig ¶
type FetchConfig struct {
HTTPClientConfig // TLS configuration reused for fetch() requests
AllowPrivateNetworks bool // Allow localhost, 10.x, 192.168.x
AllowHTTP bool // Allow HTTP (non-HTTPS) requests (separate from TLS skip)
Timeout time.Duration // Request timeout (default 30s)
}
FetchConfig contains configuration for JavaScript fetch() requests. Defined in config package to avoid import cycles between model and plugin packages.
func DefaultFetchConfig ¶
func DefaultFetchConfig() *FetchConfig
DefaultFetchConfig returns secure defaults.
Click to show internal directories.
Click to hide internal directories.