urbit/pkg/arvo/lib/graph.hoon

25 lines
468 B
Plaintext
Raw Normal View History

/- *resource
/+ store=graph-store
|_ =bowl:gall
2020-06-27 00:13:12 +03:00
++ scry-for
|* [=mold =path]
.^ mold
%gx
(scot %p our.bowl)
%graph-store
(scot %da now.bowl)
(snoc `^path`path %noun)
==
::
++ get-graph
|= res=resource
2020-07-07 03:02:15 +03:00
^- marked-graph:store
%+ scry-for marked-graph:store
/graph/(scot %p entity.res)/[name.res]
::
++ peek-log
|= res=resource
^- (unit time)
(scry-for (unit time) /peek-update-log/(scot %p entity.res)/[name.res])
2020-06-27 00:13:12 +03:00
--