Members
degraded :boolean
Type:
- boolean
deviceId :string
Type:
- string
devices :DocumentStore
Type:
orbitDb :OrbitDB
Type:
storeDefaults :Object
default options for stores
Type:
- Object
Methods
(static) create(options) → {Promise.<Cloudy>}
Short hand to create a Cloudy instance.
Parameters:
Name | Type | Description |
---|---|---|
options |
CloudyOptions |
Returns:
- Cloudy instance
- Type
- Promise.<Cloudy>
initIpfsInstance(ipfsOrOptions) → {Promise.<IPFS>}
helper method to create an IPFS instance based on user-supplied params
Parameters:
Name | Type | Description |
---|---|---|
ipfsOrOptions |
Object | undefined | options to be passed to IPFS constructor |
Returns:
- Type
- Promise.<IPFS>
(async) stop()
stops the underlying OrbitDB instance
(async) store(nameOrAddress, options) → {Promise.<DocumentStore>}
create a new docstore
Parameters:
Name | Type | Description |
---|---|---|
nameOrAddress |
string | existing database address (can be JS object), otherwise give a random name to initiate a (possibly new) database |
options |
* |
Returns:
- Type
- Promise.<DocumentStore>
updateWakeupFunction(funcopt, deviceIdopt)
PUBLIC function to update wakeup function
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
func |
function |
<optional> |
wake up function |
deviceId |
string |
<optional> |
unique ID for device |
(async) wakeupAll()
trigger all other devices to wake up