Packages
kreuzcrawl
0.3.0-rc.48
0.3.0
0.3.0-rc.88
0.3.0-rc.87
0.3.0-rc.86
0.3.0-rc.85
0.3.0-rc.84
0.3.0-rc.83
0.3.0-rc.82
0.3.0-rc.81
0.3.0-rc.80
0.3.0-rc.79
0.3.0-rc.77
0.3.0-rc.72
0.3.0-rc.71
0.3.0-rc.70
0.3.0-rc.55
0.3.0-rc.51
0.3.0-rc.50
0.3.0-rc.49
0.3.0-rc.48
0.3.0-rc.47
0.3.0-rc.46
0.3.0-rc.45
0.3.0-rc.44
0.3.0-rc.43
0.3.0-rc.42
0.3.0-rc.37
0.3.0-rc.19
0.3.0-rc.18
0.3.0-rc.17
0.3.0-rc.15
0.3.0-rc.14
0.3.0-rc.13
0.3.0-rc.12
0.3.0-rc.11
0.3.0-rc.10
0.3.0-rc.9
0.3.0-rc.8
0.3.0-rc.7
0.3.0-rc.3
0.3.0-rc.2
0.2.0
0.1.2
0.1.1
0.1.0-rc.9
0.1.0-rc.8
0.1.0-rc.7
0.1.0-rc.6
0.1.0-rc.5
0.1.0-rc.2
High-performance web crawling engine
Current section
Files
Jump to
Current section
Files
lib/kreuzcrawl/batch_crawl_stream_request.ex
# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:2993fbc38a96c38ce794c49583670e23ac73a921000d5a5ded6511494275a798
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule Kreuzcrawl.BatchCrawlStreamRequest do
@moduledoc """
Request to begin a multi-URL streaming crawl.
Wraps a set of seed URLs for delivery through the streaming-adapter binding
surface. Required as a struct because alef's streaming adapter requires a
named request type — primitives are not supported.
"""
@typedoc "Request to begin a multi-URL streaming crawl."
@type t :: %__MODULE__{
urls: [String.t()]
}
defstruct urls: []
defimpl Jason.Encoder do
@doc false
def encode(value, opts) do
value
|> Map.from_struct()
|> Enum.reject(fn {_k, v} -> v == nil end)
|> Enum.into(%{})
|> Jason.Encoder.encode(opts)
end
end
end