zerobs_stack v0.1.0 API Reference
Modules
Documentation for ZerobsStack.
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.
This plug allows for rate limiting HTTP calls to your application. It can be used in your controllers or the routing pipeline to e.g. rate limit per-IP traffic across your whole application and further restrict specific routes (e.g. login/password reset) further. A key to rate limit on can be chosen dynamically from the conn to allow for flexible limits.
This allows for automatic kubernetes healthchecks via a list of configured {Module, Function, Arguments} tuples.
All configured MFAs are executed and checked against the {:ok, _} tuple. If any of the check fails the Plug returns HTTP 500.