Liking cljdoc? Tell your friends :D

puppetlabs.analytics.storage


discard!clj

(discard! queue entry-ids)

Inputs: [queue :- Stockpile entry-ids :- [schema/Int]]

Inputs: [queue :- Stockpile entry-ids :- [schema/Int]]
sourceraw docstring

init-queueclj

(init-queue dir)

Initialize a queue. The dir is expected to exist and be writable.

Initialize a queue. The `dir` is expected to exist and be writable.
sourceraw docstring

purge-queue!clj

(purge-queue! queue)

Inputs: [queue :- Stockpile]

Inputs: [queue :- Stockpile]
sourceraw docstring

read-entryclj

(read-entry queue message-id)

Read a message from the queue. This does not remove it from the queue, but just reads a message by id.

Read a message from the queue. This does not remove it from the queue, but
just reads a message by id.
sourceraw docstring

reduce-entriesclj

(reduce-entries queue f val)

Reduce over the entries. The reducer function should expect to get entry ids.

Reduce over the entries. The reducer function should expect to get entry ids.
sourceraw docstring

storeclj

(store queue object)

Inputs: [queue :- puppetlabs.stockpile.queue.Stockpile object :- (schema/if (fn* [p1__8670#] (contains? p1__8670# "event")) internal-api/Event internal-api/Snapshot)] Returns: (schema/protocol stockpile/Entry)

Store a message on the queue. The queue should already be initialized. The message should be a map. This returns a message id that can be used to retrieve the message.

Inputs: [queue :- puppetlabs.stockpile.queue.Stockpile object :- (schema/if (fn* [p1__8670#] (contains? p1__8670# "event")) internal-api/Event internal-api/Snapshot)]
Returns: (schema/protocol stockpile/Entry)

Store a message on the queue. The queue should already be initialized. The
message should be a map. This returns a message id that can be used to
retrieve the message.
sourceraw docstring

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

× close