ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
mdl_run_opts_t Struct Reference

Cross-cutting policy and injected transport threaded into every mode. More...

#include <mdl_app.h>

Collaboration diagram for mdl_run_opts_t:

Data Fields

mdl_net_policy_t policy
 Backend security policy.
const mdl_net_provider_tnet
 Injected transport factory.
const char * contact
 Operator contact override, or NULL.
bool honor_robots
 False when robots.txt is ignored.
bool polite
 True to raise per-host delays.
bool allow_incomplete
 True to package a run with failures.
bool progress
 True to draw a progress bar.
bool refetch
 True to bypass verified page reuse.

Detailed Description

Cross-cutting policy and injected transport threaded into every mode.

Bundles the network policy, the identity/politeness knobs and the transport factory so the run entry points take one options pointer rather than a long, swappable scalar parameter list. net is the Dependency Injection seam: production wires a real backend factory, tests wire a scripted fake with the same mdl_net_iface_t shape.

Invariant
policy.max_response_bytes is non-zero for a bounded fetch.
net is non-NULL for every mode that performs a request.
See also
mdl_net_provider_t
Since
0.1.0

Definition at line 73 of file mdl_app.h.

Field Documentation

◆ allow_incomplete

bool mdl_run_opts_t::allow_incomplete

True to package a run with failures.

Definition at line 79 of file mdl_app.h.

Referenced by internal_export_after().

◆ contact

const char* mdl_run_opts_t::contact

Operator contact override, or NULL.

Definition at line 76 of file mdl_app.h.

Referenced by priv_mdl_app_start_session().

◆ honor_robots

bool mdl_run_opts_t::honor_robots

False when robots.txt is ignored.

Definition at line 77 of file mdl_app.h.

Referenced by priv_mdl_app_start_session().

◆ net

const mdl_net_provider_t* mdl_run_opts_t::net

Injected transport factory.

Definition at line 75 of file mdl_app.h.

Referenced by internal_fetch_artifact(), main(), mdl_app_run_discover(), and mdl_app_run_page().

◆ policy

mdl_net_policy_t mdl_run_opts_t::policy

Backend security policy.

Definition at line 74 of file mdl_app.h.

Referenced by internal_fetch_artifact(), internal_prepare_run_policy(), mdl_app_run_discover(), and mdl_app_run_page().

◆ polite

bool mdl_run_opts_t::polite

True to raise per-host delays.

Definition at line 78 of file mdl_app.h.

Referenced by mdl_app_run_discover(), mdl_app_run_page(), and mdl_app_run_series().

◆ progress

bool mdl_run_opts_t::progress

True to draw a progress bar.

Definition at line 80 of file mdl_app.h.

Referenced by internal_make_ctx().

◆ refetch

bool mdl_run_opts_t::refetch

True to bypass verified page reuse.

Definition at line 81 of file mdl_app.h.

Referenced by internal_make_ctx().


The documentation for this struct was generated from the following file: