Dust (dustlayer v0.1.1)

Copy Markdown View Source

Dust SDK — reactive global map client.

Summary

Functions

Returns the WebSocket URL for Dust's hosted cloud service at dustlayer.io.

Functions

add(store, path, member)

See Dust.SyncEngine.add/3.

add(store, path, member, opts)

See Dust.SyncEngine.add/4.

child_spec(opts)

cloud_url()

Returns the WebSocket URL for Dust's hosted cloud service at dustlayer.io.

Use as the :url option when starting the supervisor against cloud:

{Dust, stores: ["acme/site"], url: Dust.cloud_url(), token: token, cache: ...}

delete(store, path)

See Dust.SyncEngine.delete/2.

delete(store, path, opts)

See Dust.SyncEngine.delete/3.

entry(store, path)

See Dust.SyncEngine.entry/2.

enum(store, pattern)

See Dust.SyncEngine.enum/2.

enum(store, pattern, opts)

See Dust.SyncEngine.enum/3.

get(store, path)

See Dust.SyncEngine.get/2.

get_many(store, paths)

See Dust.SyncEngine.get_many/2.

increment(store, path, delta \\ 1)

See Dust.SyncEngine.increment/3.

increment(store, path, delta, opts)

See Dust.SyncEngine.increment/4.

merge(store, path, map)

See Dust.SyncEngine.merge/3.

merge(store, path, map, opts)

See Dust.SyncEngine.merge/4.

off(store, ref)

See Dust.SyncEngine.off/2.

on(store, pattern, callback, opts \\ [])

See Dust.SyncEngine.on/4.

put(store, path, value)

See Dust.SyncEngine.put/3.

put(store, path, value, opts)

See Dust.SyncEngine.put/4.

put_file(store, path, source_path)

See Dust.SyncEngine.put_file/3.

put_file(store, path, source_path, opts)

See Dust.SyncEngine.put_file/4.

range(store, from, to, opts \\ [])

See Dust.SyncEngine.range/4.

remove(store, path, member)

See Dust.SyncEngine.remove/3.

remove(store, path, member, opts)

See Dust.SyncEngine.remove/4.

status(store)

See Dust.SyncEngine.status/1.

unsubscribe(store, ref)

See Dust.SyncEngine.off/2.

watch(store, pattern, callback, opts \\ [])

See Dust.SyncEngine.on/4.