View Source erldns_zone_parser (erldns v4.2.0)
Process for parsing zone data from JSON to Erlang representations.
Summary
Functions
Register a custom parser module.
Register a list of custom parser modules.
Start the parser processor.
Takes a JSON zone and turns it into the tuple {Name, Sha, Records}.
Functions
-spec list_parsers() -> [module()].
-spec register_parser(module()) -> ok.
Register a custom parser module.
-spec register_parsers([module()]) -> ok.
Register a list of custom parser modules.
-spec start_link() -> any().
Start the parser processor.
-spec zone_to_erlang(map()) -> {binary(), binary(), [dns:rr()], [erldns:keyset()]}.
Takes a JSON zone and turns it into the tuple {Name, Sha, Records}.
The default timeout for parsing is currently 30 seconds.