Mediate.Exemption (mediate v0.1.0)

Copy Markdown View Source

A named, logged opt-out from mediation, per call. :declared carries the caller's reason. :library marks the seam's own writes, and the seam accepts it only from a Mediate.* module.

Summary

Types

Who declared the opt-out: the caller, or the seam itself.

t()

on is the root source: a schema module, a table name, or nil for raw SQL.

Types

kind()

@type kind() :: :declared | :library

Who declared the opt-out: the caller, or the seam itself.

t()

@type t() :: %Mediate.Exemption{
  caller: module() | :any,
  kind: kind(),
  on: module() | String.t() | nil,
  reason: String.t()
}

on is the root source: a schema module, a table name, or nil for raw SQL.