Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
pobear
command
Command pobear builds the pobear binary, wiring the cli, rpc, and core services together (including the hidden `__rpc` subcommand).
|
Command pobear builds the pobear binary, wiring the cli, rpc, and core services together (including the hidden `__rpc` subcommand). |
|
internal
|
|
|
testutil
Package testutil holds test-only infrastructure shared across test tiers (see the project's test-framework design spec, §3 and §4): a fake HTTP server that serves a fixture directory's files path-keyed.
|
Package testutil holds test-only infrastructure shared across test tiers (see the project's test-framework design spec, §3 and §4): a fake HTTP server that serves a fixture directory's files path-keyed. |
|
testutil/clitest
Package clitest builds the pobear binary (call Build once and reuse the path across fixtures) and, per fixture, runs it as a subprocess and diffs stdout/stderr/exit code against a single YAML case file (args, stdout, stderr, exit, and optional stdin/providers/fixtures keys) — the exact output/exit-code behavior each fixture predicts comes from docs/CLI_REFERENCE.md.
|
Package clitest builds the pobear binary (call Build once and reuse the path across fixtures) and, per fixture, runs it as a subprocess and diffs stdout/stderr/exit code against a single YAML case file (args, stdout, stderr, exit, and optional stdin/providers/fixtures keys) — the exact output/exit-code behavior each fixture predicts comes from docs/CLI_REFERENCE.md. |
|
pkg
|
|
|
credentials
Package credentials implements the shared provider-credential store (POBEAR_PROVIDER_<NAME>_<CREDENTIAL> / ~/.pobear/credentials): written by the CLI's provider-auth flow, read by the core engine's provider fetch tier at request time.
|
Package credentials implements the shared provider-credential store (POBEAR_PROVIDER_<NAME>_<CREDENTIAL> / ~/.pobear/credentials): written by the CLI's provider-auth flow, read by the core engine's provider fetch tier at request time. |
|
exitcode
Package exitcode maps a finished job's outcome (via pkg/fault) to the CLI's process exit code.
|
Package exitcode maps a finished job's outcome (via pkg/fault) to the CLI's process exit code. |
|
fault
Package fault defines the fault-kind taxonomy (auth, network, timeout, http, blocked, rateLimit, provider, plus the job-level spec/parse/plugin kinds): what a provider manifest's errors[] classifies a response into, and what the CLI's exit codes key off of.
|
Package fault defines the fault-kind taxonomy (auth, network, timeout, http, blocked, rateLimit, provider, plus the job-level spec/parse/plugin kinds): what a provider manifest's errors[] classifies a response into, and what the CLI's exit codes key off of. |
|
jobresult
Package jobresult holds job outcome types shared across the job executor, crawl walker, and CLI command layer.
|
Package jobresult holds job outcome types shared across the job executor, crawl walker, and CLI command layer. |
|
jobspec
Package jobspec defines the job spec document (docs/JOB_SPEC_REFERENCE.md): types and validation shared by every front end and by the core engine.
|
Package jobspec defines the job spec document (docs/JOB_SPEC_REFERENCE.md): types and validation shared by every front end and by the core engine. |
|
provider
Package provider defines the provider manifest document (docs/PROVIDER_REFERENCE.md): types and validation shared by the CLI's providerator and the core engine's provider fetch tier.
|
Package provider defines the provider manifest document (docs/PROVIDER_REFERENCE.md): types and validation shared by the CLI's providerator and the core engine's provider fetch tier. |
|
utils
Package utils holds the generic map[string]any validation helpers shared by pkg/jobspec and pkg/provider: both parse a YAML/JSON document into a generic tree and walk it by hand (rather than decoding straight into a typed struct) so they can report a strict, dotted field path and an exact, fixture-locked message for the first rule violated.
|
Package utils holds the generic map[string]any validation helpers shared by pkg/jobspec and pkg/provider: both parse a YAML/JSON document into a generic tree and walk it by hand (rather than decoding straight into a typed struct) so they can report a strict, dotted field path and an exact, fixture-locked message for the first rule violated. |
|
Package providers embeds the manifests in this directory into the pobear binary, so a provider like Decodo works out of the box without the user placing any files on disk.
|
Package providers embeds the manifests in this directory into the pobear binary, so a provider like Decodo works out of the box without the user placing any files on disk. |
|
internal/decodogen
command
|
|
|
services
|
|
|
cli
Package cli is the Commander entrypoint: parses argv, routes to a subcommand, and maps a finished job's outcome to a process exit code.
|
Package cli is the Commander entrypoint: parses argv, routes to a subcommand, and maps a finished job's outcome to a process exit code. |
|
cli/internal/command
Package command implements pobear's subcommands (version, scrape, crawl, run, providers, auth).
|
Package command implements pobear's subcommands (version, scrape, crawl, run, providers, auth). |
|
cli/internal/jobgen
Package jobgen turns CLI flags (or wizard form state) into a validated job spec.
|
Package jobgen turns CLI flags (or wizard form state) into a validated job spec. |
|
cli/internal/providerator
Package providerator loads and validates installed provider manifests, and answers what fields a given provider accepts.
|
Package providerator loads and validates installed provider manifests, and answers what fields a given provider accepts. |
|
cli/internal/wizard
Package wizard implements the `pobear wizard` full-screen reactive terminal UI.
|
Package wizard implements the `pobear wizard` full-screen reactive terminal UI. |
|
core
Package core is the one engine that validates and executes a job spec, regardless of which front end (CLI or RPC) produced it.
|
Package core is the one engine that validates and executes a job spec, regardless of which front end (CLI or RPC) produced it. |
|
core/internal/fetch
Package fetch dispatches a job's fetch to whichever tier fetch.use selects (local, proxy, or provider), and owns concurrency, rate limiting, and retrying that SAME tier on failure.
|
Package fetch dispatches a job's fetch to whichever tier fetch.use selects (local, proxy, or provider), and owns concurrency, rate limiting, and retrying that SAME tier on failure. |
|
core/internal/fetch/tiers
Package tiers implements the three fetch tiers fetcher can dispatch to: local, proxy, and provider.
|
Package tiers implements the three fetch tiers fetcher can dispatch to: local, proxy, and provider. |
|
core/internal/integrationtest
Package integrationtest runs one hermetic integration fixture case (see the project's test-framework design spec, §3) against the real services/core dependency graph, faking only the network.
|
Package integrationtest runs one hermetic integration fixture case (see the project's test-framework design spec, §3) against the real services/core dependency graph, faking only the network. |
|
core/internal/job
Package job parses and executes a job spec: load-time validation, then the run loop that walks the source and dispatches work to a worker.
|
Package job parses and executes a job spec: load-time validation, then the run loop that walks the source and dispatches work to a worker. |
|
core/internal/job/pool
Package pool runs units of work with bounded concurrency, where a unit of work may itself submit more work while it runs.
|
Package pool runs units of work with bounded concurrency, where a unit of work may itself submit more work while it runs. |
|
core/internal/job/workers
Package workers holds the units of work job.Executor can dispatch to.
|
Package workers holds the units of work job.Executor can dispatch to. |
|
core/internal/job/workers/crawl
Package crawl implements the crawl worker: everything the scrape worker does, plus frontier logic (depth, scope, include/exclude, sitemap, robots) and per-crawl dedupe.
|
Package crawl implements the crawl worker: everything the scrape worker does, plus frontier logic (depth, scope, include/exclude, sitemap, robots) and per-crawl dedupe. |
|
core/internal/sink
Package sink dispatches a finished item to whichever sink implementation sink.use selects.
|
Package sink dispatches a finished item to whichever sink implementation sink.use selects. |
|
core/internal/sink/sinks
Package sinks implements three of the four sink kinds: stdout, ndjson, and json.
|
Package sinks implements three of the four sink kinds: stdout, ndjson, and json. |
|
core/internal/stage
Package stage runs the stages pipeline over a fetched item, in declared order, dispatching each stage to the Extractor its `use` selects.
|
Package stage runs the stages pipeline over a fetched item, in declared order, dispatching each stage to the Extractor its `use` selects. |
|
core/internal/stage/extractors
Package extractors implements the four extraction methods a stage can be configured to use: raw, markdown, css, and plugin.
|
Package extractors implements the four extraction methods a stage can be configured to use: raw, markdown, css, and plugin. |
|
rpc
Package rpc implements the hidden `pobear __rpc` subcommand: the wire protocol server side that SDKs spawn and talk to over stdin/stdout.
|
Package rpc implements the hidden `pobear __rpc` subcommand: the wire protocol server side that SDKs spawn and talk to over stdin/stdout. |
|
rpc/internal/jobgen
Package jobgen turns wire-protocol params into a validated job spec.
|
Package jobgen turns wire-protocol params into a validated job spec. |
|
rpc/internal/streamer
Package streamer carries results and plugin-stage callbacks back over the wire protocol.
|
Package streamer carries results and plugin-stage callbacks back over the wire protocol. |
Click to show internal directories.
Click to hide internal directories.