element_kit v0.5.0 ElementKit.API.RateLimit

Link to this section Summary

Link to this section Types

Link to this type

api_key()

api_key() :: binary()

Link to this section Functions

Link to this function

consume(api_key \\ ElementKit.RuntimeConfig.api_key())

consume(api_key()) :: :ok
Link to this function

default_reset_at()

Link to this function

handle_headers(api_key \\ ElementKit.RuntimeConfig.api_key(), headers)

handle_headers(api_key(), headers :: list()) :: :ok
Link to this function

next_cooldown(api_key \\ ElementKit.RuntimeConfig.api_key())

next_cooldown(api_key()) :: non_neg_integer()
Link to this function

rate_limit_parser()