RigInboundGatewayWeb.ConnectionLimit (Reactive Interaction Gateway v3.0.0-alpha.2) View Source

Used to enforce a limit on the maximum connections per minute

Link to this section Summary

Functions

Returns module configuration.

Link to this section Functions

Specs

check_rate_limit() ::
  {:ok, integer()}
  | {:error,
     %RigInboundGatewayWeb.ConnectionLimit.MaxConnectionsError{
       __exception__: term(),
       n_connections: term()
     }}

Specs

config() :: any()

Returns module configuration.

If application environment contains values in Keyword or Map struct, defaults from macro usage will be recursively merged with application configuration.

If one of the configuration parameters does not exist or can not be resolved, raises ArgumentError.