Skip to main content

Module world

Module world 

Source
Expand description

The simulated world: shards on one machine, a client, an external service, a seeded scheduler and fault injection.

Structs§

Failure
Report
Service
A mock external service. It logs every call with its idempotency key and input. Responses differ per call, so a step that runs again yields a different value; if any later step had already run on the first value, the log shows one key called with two different inputs.
SimCodec
A deterministic stand-in for encryption (the simulator must be reproducible from its seed).
SimConfig
Knobs for one simulation run.
SimSleep
Sleeps in simulated time (for step functions that model slow services).
World

Enums§

Job

Constants§

TALKER_PROGRESS
The progress a Job::Talker streams.

Functions§

register
run_seed
Runs one seed.
sim_sleep
tokens_hash
What a Job::Talker returns: a hash of its tokens in order, which the checker compares with what readers of its stream saw.

Type Aliases§

ServiceRef