View Source Plausible.Shields (Plausible v0.0.1)
Contextual interface for shields.
Summary
Functions
@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() ]
@spec remove_ip_rule(Plausible.Site.t() | non_neg_integer(), String.t()) :: :ok