Class: Wurk::Web
- Inherits:
-
Object
- Object
- Wurk::Web
- Defined in:
- lib/wurk/web.rb,
lib/wurk/web/config.rb,
lib/wurk/web/search.rb,
lib/wurk/web/enterprise.rb
Overview
Web UI namespace. Holds three sibling concerns:
* `Wurk::Web::Config` + `Wurk::Web::Authorization` — the Rack-level
authorization hook (sidekiq-ent §9.2), 403 on falsey.
* `Wurk::Web::Search` — Pro substring search across queues/retries/
scheduled/dead (ZSCAN + glob; sidekiq-pro §10.1).
* `Wurk::Web::Enterprise` — Limits / Periodic / Historical helpers
(sidekiq-ent §9.1) used by the JSON APIs.
Wurk ships every Pro/Ent web feature free. Loading this file is enough to make ‘Wurk::Web.configure` available — no separate require needed.
The class body is intentionally empty — every concern lives in a sibling file already required above. Rubocop’s Lint/EmptyClass is disabled because this is a namespace anchor, not a missing-implementation bug.
Defined Under Namespace
Modules: Enterprise Classes: Authorization, Config, MiddlewareStack, Search
Class Method Summary collapse
- .config ⇒ Object
- .configure {|config| ... } ⇒ Object
-
.reset_config! ⇒ Object
Test helper — exposed for parity with ‘Wurk::Limiter.reset_config!`.
-
.use ⇒ Object
Class-level shorthand for ‘config.use` — mirrors `Sidekiq::Web.use`.
Class Method Details
.config ⇒ Object
113 114 115 |
# File 'lib/wurk/web/config.rb', line 113 def config @config ||= Config.new end |
.configure {|config| ... } ⇒ Object
117 118 119 |
# File 'lib/wurk/web/config.rb', line 117 def configure yield config end |
.reset_config! ⇒ Object
Test helper — exposed for parity with ‘Wurk::Limiter.reset_config!`. Production callers should not need to drop the auth block at runtime.
128 129 130 |
# File 'lib/wurk/web/config.rb', line 128 def reset_config! @config = nil end |
.use ⇒ Object
Class-level shorthand for ‘config.use` — mirrors `Sidekiq::Web.use`.
122 123 124 |
# File 'lib/wurk/web/config.rb', line 122 def use(...) config.use(...) end |