pub struct IndexerConfig {
pub policy: FetchPolicy,
pub bootstrap: Vec<PublicKey>,
pub rate_limit: Option<RateLimitConfig>,
}Expand description
Configuration bundle for run_indexer.
Fields§
§policy: FetchPolicyBlob fetch policy applied to each accepted announcement.
bootstrap: Vec<PublicKey>Known bootstrap peers (iroh public keys) to seed the gossip swarm.
Empty in production (relay-based discovery); populate in integration tests for loopback connections without relay infrastructure.
rate_limit: Option<RateLimitConfig>Optional per-source flood protection.
None disables rate limiting (all announcements are accepted).
Implementations§
Source§impl IndexerConfig
impl IndexerConfig
Sourcepub fn simple(policy: FetchPolicy, bootstrap: Vec<PublicKey>) -> Self
pub fn simple(policy: FetchPolicy, bootstrap: Vec<PublicKey>) -> Self
Convenience constructor: policy + bootstrap, no rate limiting.
Trait Implementations§
Source§impl Clone for IndexerConfig
impl Clone for IndexerConfig
Source§fn clone(&self) -> IndexerConfig
fn clone(&self) -> IndexerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IndexerConfig
impl RefUnwindSafe for IndexerConfig
impl Send for IndexerConfig
impl Sync for IndexerConfig
impl Unpin for IndexerConfig
impl UnsafeUnpin for IndexerConfig
impl UnwindSafe for IndexerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more