erldns_zone_context (erldns v13.0.0)
View SourceA zone pipe that drops the records this node doesn't serve, by the context of their JSON.
It reads context_options from the zones configuration when the pipeline is prepared. It is
disabled without them, and fails if they aren't a map. See Contexts.
It goes before erldns_zone_standard, so that the records it drops aren't decoded.
Summary
Functions
-spec decode_record(Source, Entry, erldns_zone_pipeline:opts()) -> Entry | drop when Source :: erldns_zone_pipeline:entry(), Entry :: erldns_zone_pipeline:entry().
erldns_zone_pipeline:decode_record/3 callback.
-spec deps() -> erldns_pipeline:deps().
erldns_zone_pipeline:deps/0 callback.
-spec prepare(erldns_zone_pipeline:opts()) -> disabled | erldns_zone_pipeline:opts().
erldns_zone_pipeline:prepare/1 callback.