log

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	*raftbadgerdb.BadgerStore
}

Log is an object that can return information about the Raft log.

func NewLog

func NewLog(path string) (*Log, error)

NewLog returns an instantiated Log object.

func (*Log) Indexes

func (l *Log) Indexes() (uint64, uint64, error)

Indexes returns the first and last indexes.

func (*Log) LastCommandIndex

func (l *Log) LastCommandIndex() (uint64, error)

LastCommandIndex returns the index of the last Command log entry written to the Raft log. Returns an index of zero if no such log exists.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL