Packages

Elixir Plug for Ralitobu, the Rate Limiter with Token Bucket algorithm

Current section

Files

Jump to
ralitobu_plug lib ralitobu plug state.ex
Raw

lib/ralitobu/plug/state.ex

defmodule Ralitobu.Plug.State do
@moduledoc """
State struct for the plug (stored in conn.private)
"""
@doc false
defstruct ~w(
bucket limit lifetime
success remaining reset
)a
end