Skip to content

amqpx v1.0.1


amqpx / index / AssertionMode

Enumeration: AssertionMode

Defined in: src/types.ts:14

Controls how an entity is verified against the broker when assert() is called.

  • Assert (default) — declare the entity, creating it if absent; fail on config mismatch.
  • Check — verify the entity exists without creating it; fail if absent.
  • Passive — skip all broker interaction; no network call is made.

Enumeration Members

Enumeration MemberValueDescriptionDefined in
Assert"Assert"Assert the entity against the broker. Creates it if absent; throws if it exists with incompatible options. This is the default mode.src/types.ts:20
Check"Check"Only check that the entity exists on the broker. Does not create it; throws if absent.src/types.ts:25
Passive"Passive"Skip all broker-side verification. No network call is made when assert() is invoked.src/types.ts:30

Released under the MIT License.