Add user-defined functions

To allow for extraction of metadata, and building of head responses - it should eb possible to dynamically and user-defined tags, and functions to treat them.

If no function is defined, revert to the behaviour of the ?STD tag.
This commit is contained in:
Martin Sumner 2018-12-06 21:00:59 +00:00
parent 881b93229b
commit 8e687ee7c8
5 changed files with 307 additions and 87 deletions

View file

@ -680,10 +680,8 @@ accumulate_objects(FoldObjectsFun, InkerClone, Tag, DeferredFetch) ->
case DeferredFetch of
{true, JournalCheck} ->
ProxyObj =
leveled_head:maybe_build_proxy(Tag,
MD,
InkerClone,
JK),
leveled_codec:return_proxy(Tag, MD,
InkerClone, JK),
case JournalCheck of
true ->
InJournal =