Liking cljdoc? Tell your friends :D

fluree.raft.log


all-log-indexesclj

(all-log-indexes path)
(all-log-indexes path type)

Returns all index file names present in provided raft log path.

Returns all index file names present in provided raft log path.
raw docstring

appendclj

(append file entries after-index current-index)

Append entries to log starting after-index relative to current-index.

Append entries to log starting after-index relative to current-index.
raw docstring

assoc-index->term-cacheclj

(assoc-index->term-cache index term)

Implements a simple fifo cache.

Implements a simple fifo cache.
raw docstring

clear-index->term-cacheclj

(clear-index->term-cache)

Clears cache

Clears cache
raw docstring

entry-typesclj


entry-types'clj


get-index->term-cacheclj

(get-index->term-cache index)

index->termclj

(index->term file index)

Returns term of specified index number.

Returns term of specified index number.
raw docstring

index->term*clj

(index->term* file index)

Returns term of specified index number.

Returns term of specified index number.
raw docstring

latest-log-indexclj

(latest-log-index path)
(latest-log-index path type)

Returns the most recent (largest) log index point.

Returns the most recent (largest) log index point.
raw docstring

read-entry-rangeclj

(read-entry-range file start-index)
(read-entry-range file start-index end-index)

Reads index from start-index (inclusive) to end-index (inclusive).

Reads index from start-index (inclusive) to end-index (inclusive).
raw docstring

read-log-fileclj

(read-log-file file)

Reads entire log file.

Reads entire log file.
raw docstring

remove-entriesclj

(remove-entries file start-index)

Removes entries from log from start-index (inclusive) to end.

Changes index of removed entries to -1, so ignored by future reads.

Removes entries from log from start-index (inclusive) to end.

Changes index of removed entries to -1, so ignored by future reads.
raw docstring

rotate-logclj

(rotate-log raft-state)

Rotates current log

Rotates current log
raw docstring

write-current-termclj

(write-current-term file term)

Record latest term we've seen to persistent log.

Record latest term we've seen to persistent log.
raw docstring

write-new-commandclj

(write-new-command file index entry)

Writes a new command as leader.

Writes a new command as leader.
raw docstring

write-snapshotclj

(write-snapshot file snapshot-index snapshot-term)

write-voted-forclj

(write-voted-for file term voted-for)

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

× close