Defdo.DDNS.RecordStore behaviour
(defdo_ddns v0.5.0)
Copy Markdown
Behaviour and runtime facade for DDNS record persistence.
The configured backend is responsible for storing generic DDNS record definitions and exposing them to the rest of the application.
Summary
Functions
Returns the configured backend module.
Returns the backend child spec tuple for the supervisor.
Alias for status/1.
Returns the current snapshot from the configured backend.
Returns the current records from the configured backend.
Persists the configured backend snapshot to disk if supported.
Returns the current records from the configured backend.
Reloads the configured backend from its current bootstrap sources.
Replaces the configured backend records with a new list.
Returns the current snapshot from the configured backend.
Returns the backend start options.
Returns safe runtime diagnostics from the configured backend.
Writes the current backend snapshot to an explicit path.
Types
Callbacks
Functions
@spec backend_module() :: module()
Returns the configured backend module.
Returns the backend child spec tuple for the supervisor.
Alias for status/1.
Returns the current snapshot from the configured backend.
Returns the current records from the configured backend.
Persists the configured backend snapshot to disk if supported.
@spec records() :: [record()]
Returns the current records from the configured backend.
Reloads the configured backend from its current bootstrap sources.
Replaces the configured backend records with a new list.
@spec snapshot() :: map()
Returns the current snapshot from the configured backend.
@spec start_options() :: keyword()
Returns the backend start options.
These include the generic record-store flags plus any adapter-specific
options configured under :options.
Returns safe runtime diagnostics from the configured backend.
Writes the current backend snapshot to an explicit path.