scuttlebutt-schema
Tools for creating scuttlebutts.
schema
var schema =var Model =var Events =var createScuttlebutt =//keys are matched on the prefix.var model1 =var model2 =var events1 =
open
open
loads a scuttlebutt via a stream.
given a schema, and a createStream function,
open
returns a async function that will callback a fully loaded scuttlebutt.
the createStream
function takes a string, just like schema
, and should return a stream
to a scuttlebutt instance with the same name, or a file where that scuttlebutt instance is persisted.
var open =//now call the function with a name.
full example
var makeOpen = openvar open =## LicenseMIT