|
Arachne 1.0
Arachne - the perpetual stitcher of Wikidata entities.
|
Namespaces | |
| namespace | anonymous_namespace{hardened_transport.cpp} |
| namespace | anonymous_namespace{transport.cpp} |
Classes | |
| class | hardened_transport |
| struct | http_header |
| struct | redirect_policy |
| struct | body_artifact_reference |
| struct | fetch_request_v1 |
| struct | acquired_artifact_v1 |
| class | transport |
Enumerations | |
| enum class | http_method { get , post } |
| enum class | transport_operation { bulk_snapshot , incremental_harvest , point_lookup , resume_download , backend_read , external_write } |
| enum class | freshness_policy { fresh_required , cache_allowed , stale_allowed , offline_only } |
| enum class | delivery_mode { fetched , cache_validated , stale , resumed , offline } |
| enum class | transport_status { delivered , invalid_request , unsafe_artifact_ref , disallowed_host , redirect_rejected , redirect_limit_exceeded , timed_out , response_too_large , network_error , storage_error , artifact_exists , door_policy_rejected , cache_miss , checksum_mismatch , retry_budget_exhausted , admission_timeout } |
Functions | |
| std::string_view | to_string (transport_operation value) noexcept |
| std::string_view | to_string (freshness_policy value) noexcept |
| std::string_view | to_string (delivery_mode value) noexcept |
| fetch_request_v1 | from_contract (const nlohmann::json &document) |
| nlohmann::ordered_json | to_contract (const acquired_artifact_v1 &artifact) |
|
strong |
| Enumerator | |
|---|---|
| fetched | |
| cache_validated | |
| stale | |
| resumed | |
| offline | |
Definition at line 30 of file transport.hpp.
|
strong |
| Enumerator | |
|---|---|
| fresh_required | |
| cache_allowed | |
| stale_allowed | |
| offline_only | |
Definition at line 24 of file transport.hpp.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| bulk_snapshot | |
| incremental_harvest | |
| point_lookup | |
| resume_download | |
| backend_read | |
| external_write | |
Definition at line 16 of file transport.hpp.
|
strong |
Definition at line 97 of file transport.hpp.
|
nodiscard |
Validate and decode the canonical JSON boundary contract.
Definition at line 1341 of file transport.cpp.
References backend_read, bulk_snapshot, cache_allowed, arachne::pheidippides::fetch_request_v1::door_id, arachne::pheidippides::fetch_request_v1::endpoint_id, external_write, arachnespace::contracts::fetch_request, arachne::pheidippides::fetch_request_v1::format_version, arachne::pheidippides::fetch_request_v1::freshness, get, arachne::pheidippides::fetch_request_v1::idempotency_key, incremental_harvest, arachne::pheidippides::fetch_request_v1::max_bytes, arachne::pheidippides::fetch_request_v1::maximum_attempts, arachne::pheidippides::fetch_request_v1::method, offline_only, arachne::pheidippides::fetch_request_v1::operation, post, arachne::pheidippides::fetch_request_v1::request_id, arachne::pheidippides::fetch_request_v1::respect_retry_after, resume_download, stale_allowed, arachne::pheidippides::fetch_request_v1::target_artifact_ref, and arachne::pheidippides::fetch_request_v1::url.
|
nodiscard |
Encode a transport result as the canonical acquired-artifact contract.
Definition at line 1485 of file transport.cpp.
References arachnespace::contracts::acquired_artifact, arachne::pheidippides::acquired_artifact_v1::artifact_ref, arachne::pheidippides::acquired_artifact_v1::attempts, arachne::pheidippides::acquired_artifact_v1::byte_count, arachne::pheidippides::acquired_artifact_v1::delivered(), arachne::pheidippides::acquired_artifact_v1::door_id, arachne::pheidippides::acquired_artifact_v1::effective_url, arachne::pheidippides::acquired_artifact_v1::http_status, arachne::pheidippides::acquired_artifact_v1::request_id, and arachne::pheidippides::acquired_artifact_v1::sha256.

|
nodiscardnoexcept |
Definition at line 1325 of file transport.cpp.
References cache_validated, fetched, offline, resumed, and stale.
|
nodiscardnoexcept |
Definition at line 1311 of file transport.cpp.
References cache_allowed, fresh_required, offline_only, and stale_allowed.
|
nodiscardnoexcept |
Definition at line 1293 of file transport.cpp.
References backend_read, bulk_snapshot, external_write, incremental_harvest, point_lookup, and resume_download.