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§
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§
- Debug
Attestor - Trait marker to bound
Attestor
withDebug
for use inside the public API. - Debug
Lock Manager - Trait marker to bound
LockManager
withDebug
for use inside the public API. - Debug
Ownership Oracle - Trait marker to bound
OwnershipOracle
withDebug
for use inside the public API. - Debug
Smoke Test Runner - Trait marker to bound
SmokeTestRunner
withDebug
for use inside the public API.
Type Aliases§
- Switchyard
Builder - DX alias for
ApiBuilder
.