Address rewrites stored in Sovite's database, managed with sovitectl rewrite (see Sovite.Core.Rewrite).
As a Sovite.Core.Lookup table, the handle names the kind of rewrite
to find (:sender, :recipient, or :both) and a lookup returns the
replacement.
Summary
Functions
Deletes the rewrite of kind for pattern.
Lists all rewrites, by kind and pattern.
Sets the rewrite of kind for pattern, replacing any earlier one.
Functions
@spec delete(Sovite.Core.Repo.t(), atom(), String.t()) :: :ok | {:error, :not_found}
Deletes the rewrite of kind for pattern.
@spec list(Sovite.Core.Repo.t()) :: [Sovite.Core.Repo.Schemas.AddressRewrite.t()]
Lists all rewrites, by kind and pattern.
@spec set(Sovite.Core.Repo.t(), atom() | String.t(), String.t(), String.t()) :: {:ok, Sovite.Core.Repo.Schemas.AddressRewrite.t()} | {:error, Ecto.Changeset.t()}
Sets the rewrite of kind for pattern, replacing any earlier one.