Skip to main content

Module types

Module types 

Source
Expand description

TOML-deserializable configuration file types.

All fields are Option so that missing keys in the TOML file are accepted. The merge logic in super::resolve_config fills in defaults.

Structs§

BlockchainConfig
Blockchain section of the config file.
CacheConfig
Cache section of the config file.
ClientConfig
Client-scoped section of the config file. Independent of the node-scoped [network.discovery] (address discovery) — this narrows which peers a client discovers/probes, never ranks them.
ContentConfig
Local content-denylist section of the config file (ADR 011 §Local Denylist).
DhtConfig
[dht] section — cdn/dht/v1 settings (ADR 022).
DhtRateLimitConfig
[dht.rate_limit] — three-layer token-bucket settings (ADR 022 §DHT Rate Limiting).
DiscoveryConfig
Operator-configurable address-discovery providers (#818 scope 1).
DiscoveryPeer
A single static peer entry for DiscoveryConfig::peers. To be useful at least one of Self::relay_url / Self::addrs should be set — an id-only entry yields a peer with no transport addresses to dial.
FileConfig
Top-level TOML configuration file structure.
IdentityConfig
Identity section of the config file.
LoadShedConfig
[load_shed] section — node-local load-shedding thresholds (overload protection). All fields optional; unset falls back to the resolved defaults.
NetworkConfig
Network section of the config file.
ObservabilityConfig
Observability section of the config file.
PaymentConfig
Payment section of the config file.
ProbeConfig
[probe] section — cdn/probe/v1 settings (ADR 005).
ProbeRateLimitConfig
[probe.rate_limit] — three-layer token-bucket settings (ADR 005 §Probe rate limiting).
ReceiptsConfig
Download-receipt audit-log retention section of the config file (#802).
S3OriginConfig
S3-compatible origin configuration (#437) — wire form.
SecurityConfig
Security / rate-limiting section of the config file.
ServeEconomicsConfig
Refuse-to-serve economics tuning knobs (ADR 041). See CacheConfig::serve_economics.
TinyLfuConfig
W-TinyLFU tuning knobs (ADR 040). See CacheConfig::tinylfu.

Enums§

OriginConfig
Origin backend selection (#437). Tagged on the inner kind field.
S3Credentials
S3 credential source (#437). Tagged on the inner source field.