(add-access-controller controller)
Add a custom AccessController to the AccessControllers (a mutable singleton). Returns the updated AccessControllers instance that can be passed passing to OrbitDB.
NOTE:
The AccessController object is not directly exposed by this library, add-access-controller
is the only function which returns it.
Add a custom AccessController to the AccessControllers (a mutable singleton). Returns the updated AccessControllers instance that can be passed passing to OrbitDB. *NOTE:* The AccessController object is not directly exposed by this library, `add-access-controller` is the only function which returns it.
(create-access-controller {:keys [:type :can-append?]})
Creates and returns a custom AccessController object. Takes a map with:
:type
(string): name which uniqely identifies the controller.
:can-append
: a function with a followinf signature fn [entity identity-provider]
Creates and returns a custom AccessController object. Takes a map with: `:type` (string): name which uniqely identifies the controller. `:can-append`: a function with a followinf signature `fn [entity identity-provider]`
(supported? type)
Returns true
when AccessController identified as type
is added to the AccessControllers object.
Returns `true` when AccessController identified as `type` is added to the AccessControllers object.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close