Liking cljdoc? Tell your friends :D

orbitdb.access-controllers


add-access-controllercljs

(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.
sourceraw docstring

create-access-controllercljs

(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]`
sourceraw docstring

supported?cljs

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close