pub struct Orchestrator { /* private fields */ }Expand description
Main orchestrator
Implementations§
Source§impl Orchestrator
impl Orchestrator
Sourcepub fn with_browser_pool(self, pool: BrowserPool) -> Self
pub fn with_browser_pool(self, pool: BrowserPool) -> Self
Configure the browser pool for JS rendering
Sourcepub async fn scrape(&self, url: &Url) -> Result<ScrapeResult>
pub async fn scrape(&self, url: &Url) -> Result<ScrapeResult>
Scrape a single URL with full pipeline
Sourcepub async fn crawl(
&self,
seeds: Vec<Url>,
max_pages: Option<usize>,
) -> Result<Vec<Document>>
pub async fn crawl( &self, seeds: Vec<Url>, max_pages: Option<usize>, ) -> Result<Vec<Document>>
Crawl starting from seed URLs
Sourcepub fn metrics(&self) -> &MetricsCollector
pub fn metrics(&self) -> &MetricsCollector
Access to metrics
Sourcepub fn documents(&self) -> &NormalizedStore
pub fn documents(&self) -> &NormalizedStore
Access to document store
Sourcepub fn snapshots(&self) -> &SnapshotStore
pub fn snapshots(&self) -> &SnapshotStore
Access to snapshot store
Sourcepub fn content_dedup(&self) -> &ContentDedup
pub fn content_dedup(&self) -> &ContentDedup
Access to content dedup
Sourcepub fn allowlist_mut(&mut self) -> &mut DomainAllowlist
pub fn allowlist_mut(&mut self) -> &mut DomainAllowlist
Configure the allowlist
Sourcepub fn ip_blocker_mut(&mut self) -> &mut IpBlocker
pub fn ip_blocker_mut(&mut self) -> &mut IpBlocker
Configure IP blocker
Sourcepub fn limits_mut(&mut self) -> &mut ResourceLimits
pub fn limits_mut(&mut self) -> &mut ResourceLimits
Configure resource limits
Sourcepub fn logger(&self) -> &StructuredLogger
pub fn logger(&self) -> &StructuredLogger
Get logger
Auto Trait Implementations§
impl !Freeze for Orchestrator
impl !RefUnwindSafe for Orchestrator
impl Send for Orchestrator
impl Sync for Orchestrator
impl Unpin for Orchestrator
impl !UnwindSafe for Orchestrator
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