zerobs_stack v0.1.0 ZerobsStack.LoadShedPlug
This Plug allows dynamic load shedding via feature flags. To use it include plug ZerobsStack.LoadShedPlug, %ZerobsStack.LoadShedPlug{} in your ProjectWeb.ex controller function definition at the end of the quote do block.
It makes a feature flag called elixir_project_page_controller_index_disabled for a controller named Elixir.Project.PageController.index available via FunWithFlags.
You can configure your own error handler by passing error_controller to the initialization: plug ZerobsStack.LoadShedPlug, %ZerobsStack.LoadShedPlug{error_controller: MyErrorController}. It calls MyErrorController.call(conn, {:error, :load_shedding}) so you can render a custom response.
Link to this section Summary
Link to this section Functions
Link to this function
call(conn, opts)
Link to this function