mirabelle.index

channel

(channel stream-name)

Build the index channel name for ws subscriptions for a given stream.

IIndex

protocol

members

clear-index

(clear-index this)

Resets the index

current-time

(current-time this)

Returns the index current time

delete

(delete this labels)

Deletes an event by labels.

expire

(expire this)

Return a seq of expired states from this index, removing each.

insert

(insert this event labels)

Updates index with event

lookup

(lookup this labels)

Lookup an indexed event from the index

new-time?

(new-time? this t)

Takes a number representing the time as parameter and set the index current time if necessary

size-index

(size-index this)

Returns the index size