Module api

Module api 

Source
Expand description

API facade and orchestrators.

Construct using the builder:

use switchyard::api::Switchyard;
use switchyard::logging::JsonlSink;
use switchyard::policy::Policy;

let facts = JsonlSink::default();
let audit = JsonlSink::default();
let _api = Switchyard::builder(facts, audit, Policy::default()).build();

Modules§

errors

Structs§

ApiBuilder
Public API builder. Builder for constructing a Switchyard with ergonomic chaining. Mirrors Switchyard::new(...).with_* but avoids duplication at call sites.
Overrides
Public API overrides. Overrides for simulation in tests and controlled environments.
Switchyard
Facade for orchestrating Switchyard stages over a configured Policy and adapters.

Traits§

DebugAttestor
Trait marker to bound Attestor with Debug for use inside the public API.
DebugLockManager
Trait marker to bound LockManager with Debug for use inside the public API.
DebugOwnershipOracle
Trait marker to bound OwnershipOracle with Debug for use inside the public API.
DebugSmokeTestRunner
Trait marker to bound SmokeTestRunner with Debug for use inside the public API.

Type Aliases§

SwitchyardBuilder
DX alias for ApiBuilder.