View Source erldns_storage (erldns v4.2.0)
API for a module's function calls. Please note that all crashes should be handled at the lowest level of the API (ex. erldns_storage_json).
Summary
Functions
Backup the table to the JSON file. https://github.com/SiftLogic/erl-dns/issues/3
Backup the tables to the JSON file. https://github.com/SiftLogic/erl-dns/issues/3
Call to a module's create. Creates a new table.
Call to a module's delete. Deletes a key value from a table.
Call to a module's delete_table. Deletes the entire table.
This function emptys the specified table of all values.
Call to a module's foldl.
Backups the tables in the given period
Inits the module, and sends a "timeout" to handle_info to start the poller for table backup
Call to a module's insert. Inserts a value into the table.
List all elements in a table.
Load zones from a file. The default file name is "zones.json".(copied from erldns_zone_loader.erl)
Load zones from a file. The default file name is "zones.json".(copied from erldns_zone_loader.erl)
Call to a module's select. Uses table key pair, and can be considered a "lookup" in terms of ets.
Call to a module's select/3 Uses a matchspec to generate matches.
Functions
Backup the table to the JSON file. https://github.com/SiftLogic/erl-dns/issues/3
-spec backup_tables() -> ok | {error, Reason :: term()}.
Backup the tables to the JSON file. https://github.com/SiftLogic/erl-dns/issues/3
Call to a module's create. Creates a new table.
Call to a module's delete. Deletes a key value from a table.
Call to a module's delete_table. Deletes the entire table.
This function emptys the specified table of all values.
Call to a module's foldl.
Backups the tables in the given period
Inits the module, and sends a "timeout" to handle_info to start the poller for table backup
Call to a module's insert. Inserts a value into the table.
List all elements in a table.
Load zones from a file. The default file name is "zones.json".(copied from erldns_zone_loader.erl)
Load zones from a file. The default file name is "zones.json".(copied from erldns_zone_loader.erl)
Call to a module's select. Uses table key pair, and can be considered a "lookup" in terms of ets.
Call to a module's select/3 Uses a matchspec to generate matches.