peyk.dispatcher.middlewares.base¶
Base protocol for normalized-event dispatcher middleware.
Classes
|
Awaitable middleware around dispatcher execution. |
- class peyk.dispatcher.middlewares.base.BaseMiddleware(*args, **kwargs)[source]¶
Bases:
ProtocolAwaitable middleware around dispatcher execution.
Middleware receives the next callable, the normalized event, and a mutable context dictionary. It may add values to
databefore callingnext; matching handlers receive those values as keyword arguments.