View Source Plausible.Shields (Plausible v0.0.1)

Contextual interface for shields.

Summary

Functions

Link to this function

add_ip_rule(site_id, params)

View Source
@spec add_ip_rule(Plausible.Site.t() | non_neg_integer(), map()) ::
  {:ok, Plausible.Shield.IPRule.t()} | {:error, Ecto.Changeset.t()}
@spec count_ip_rules(Plausible.Site.t() | non_neg_integer()) :: non_neg_integer()
@spec list_ip_rules(Plausible.Site.t() | non_neg_integer()) :: [
  Plausible.Shield.IPRule.t()
]
Link to this function

remove_ip_rule(site_id, rule_id)

View Source
@spec remove_ip_rule(Plausible.Site.t() | non_neg_integer(), String.t()) :: :ok