SigilGuard. Config
(SigilGuard v0.2.0)
View Source
Configuration access for SigilGuard.
All settings are read from application env under :sigil_guard.
Options
:backend— Processing backend::elixiror:nif. Default::elixir:registry_url— Base URL for the SIGIL registry REST API. Default:"https://registry.sigil-protocol.org":registry_ttl_ms— Time-to-live for cached registry bundles in milliseconds. Default:3_600_000(1 hour):registry_timeout_ms— HTTP timeout for registry requests. Default:5_000(5 seconds, matching Rust reference):registry_retry_ms— Retry interval after a failed registry fetch, so the cache does not wait a full TTL with stale data. Default:60_000(1 minute):registry_enabled— Whether to start the registry cache on application boot. Default:false:scanner_patterns— Pattern source::built_inor:registry. Default::built_in
Summary
Functions
Return the configured processing backend.
Return whether the registry cache is enabled on boot.
Return the retry interval in milliseconds after a failed registry fetch.
Return the HTTP timeout in milliseconds for registry requests.
Return the TTL in milliseconds for cached registry bundles.
Return the configured SIGIL registry base URL.
Return the configured pattern source (:built_in or :registry).
Functions
@spec backend() :: :elixir | :nif | module()
Return the configured processing backend.
@spec registry_enabled?() :: boolean()
Return whether the registry cache is enabled on boot.
@spec registry_retry_ms() :: non_neg_integer()
Return the retry interval in milliseconds after a failed registry fetch.
@spec registry_timeout_ms() :: non_neg_integer()
Return the HTTP timeout in milliseconds for registry requests.
@spec registry_ttl_ms() :: non_neg_integer()
Return the TTL in milliseconds for cached registry bundles.
@spec registry_url() :: String.t()
Return the configured SIGIL registry base URL.
@spec scanner_patterns() :: :built_in | :registry
Return the configured pattern source (:built_in or :registry).