Kreuzcrawl.CrawlEvent (kreuzcrawl v0.3.0-rc.37)

Copy Markdown

An event emitted during a streaming crawl operation.

Not available on wasm32 targets — streaming requires native concurrency primitives (tokio channels, JoinSet) that are not supported on wasm32.

Delivered to bindings via alef's streaming-adapter pattern. The crawl_stream / batch_crawl_stream binding wrappers in bindings.rs expose this as the per-language streaming idiom (Python AsyncIterator, Ruby Enumerator, PHP Generator, Elixir Stream.unfold, etc.).

Summary

Types

The crawl has completed.

An error occurred while crawling a URL.

A single page has been crawled.

t()

An event emitted during a streaming crawl operation.

Types

complete()

@type complete() :: %{type: :complete, pages_crawled: non_neg_integer()}

The crawl has completed.

error()

@type error() :: %{type: :error, url: String.t(), error: String.t()}

An error occurred while crawling a URL.

page()

@type page() :: %{type: :page, result: Kreuzcrawl.CrawlPageResult.t()}

A single page has been crawled.

t()

@type t() :: term()

An event emitted during a streaming crawl operation.