Skip to content

src/dazzle_back/events/null.py

Generated: 2026-03-30T04:38:46.136784+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

No-op event system implementations.

Provides NullBus and NullEventFramework for use when the full event system dependencies (psycopg, etc.) are not installed. These implementations silently accept all operations, allowing application code to use the event API without conditional checks.

Key Exports

  • NullBus
  • NullEventFramework
  • publish
  • subscribe
  • unsubscribe
  • ack
  • nack
  • replay
  • get_consumer_status
  • list_topics
  • list_consumer_groups
  • get_topic_info
  • bus
  • is_running
  • start
  • stop
  • emit_event
  • health_check
  • get_status
  • get_outbox_stats

Dependencies

Imports

  • __future__.annotations
  • collections.abc.AsyncIterator
  • datetime.datetime
  • typing.Any
  • uuid.UUID
  • dazzle_back.events.bus.ConsumerStatus
  • dazzle_back.events.bus.EventBus
  • dazzle_back.events.bus.EventHandler
  • dazzle_back.events.bus.NackReason
  • dazzle_back.events.bus.SubscriptionInfo
  • dazzle_back.events.envelope.EventEnvelope
  • psycopg

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_null_event_bus.py
  • tests/unit/test_events.py
  • tests/unit/test_events_api.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.