Module: Wurk::Middleware

Defined in:
lib/wurk/middleware.rb,
lib/wurk/middleware/i18n.rb,
lib/wurk/middleware/chain.rb,
lib/wurk/middleware/expiry.rb,
lib/wurk/middleware/poison_pill.rb,
lib/wurk/middleware/interrupt_handler.rb,
lib/wurk/middleware/current_attributes.rb

Overview

Sidekiq-compatible middleware contract. Both client and server middleware share the same surface (Sidekiq aliases ‘ClientMiddleware = ServerMiddleware`). Including this gives a middleware class a `config` setter (the Chain assigns it via `Entry#make_new`) plus convenience accessors to the bound config’s Redis pool and logger.

‘config` is either a Wurk::Configuration or a Wurk::Capsule — both expose `redis_pool`, `redis`, `logger`. Treat config as the single seam between middleware and the host process.

Spec: docs/target/sidekiq-free.md §10.2.

Defined Under Namespace

Modules: CurrentAttributes, I18n, PoisonPill, ServerMiddleware Classes: Chain, Expiry, InterruptHandler

Constant Summary collapse

ClientMiddleware =
ServerMiddleware