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