urbit/pkg/arvo/sur/group-hook.hoon

27 lines
534 B
Plaintext
Raw Normal View History

2020-05-15 01:50:04 +03:00
/- *group, store=group-store
|%
2020-05-15 01:50:04 +03:00
:: $action: request to change group-hook state
::
:: %add:
:: if ship is ours make group available to sync, else sync foreign group
:: to group-store.
:: %remove:
:: if ship is ours make unavailable to sync, else stop syncing foreign
:: group.
::
+$ action
$% [%add =group-id]
[%remove =group-id]
==
:: $update: description of state change
::
:: %no-perms:
:: Group is unavailable to sync
::
+$ update
$% [%no-perms =group-id]
action
==
2020-05-15 01:50:04 +03:00
--