jackdaw.test.journal

journal-read

(journal-read journal journal-key v)
Append `record` into the `journal` under `journal-key`

journal-result

(journal-result machine record)

journaller

(journaller machine stop?)
Returns an asynchronous process that reads all messages produced by
the supplied `machine`'s `:consumer` and records them in the journal

reverse-lookup

(reverse-lookup topic-metadata topic)
Given a map of `topic-metadata`, find the name of the entry whose
`:topic-name` matches the supplied topic.

The name supplied in the key positions in the supplied map do not necessarily
match the topic name. This allows users to provide a 'logical' name that may stay
constant if the user wishes over version changes.

This function is used when populating the journal to ensure that the topic
identifiers given by the user are used when populating the journal (instead of
the real topic names).

watch-for

(watch-for machine condition? timeout info)
Returns the first true application of the journal to the specified condition `condition?`

with-journal

(with-journal machine journal)
Enriches the supplied `machine` with a journaller that will write to
the supplied `journal`.