JetPluginSDK.TenantMan.Storage (JetPluginSDK v0.2.1)
The source of truth for tenant data.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec fetch(tenant_module(), tenant_id()) :: {:ok, tenant()} | :error
@spec fetch!(tenant_module(), tenant_id()) :: tenant()
@spec insert(tenant_module(), tenant()) :: {:ok, pid()} | {:error, :already_exists}
@spec start_link(args :: [{:tenant_module, tenant_module()}]) :: GenServer.on_start()
@spec storage_name(tenant_module()) :: atom()
@spec update!(tenant_module(), tenant()) :: :ok