type Backend …
type ConsistentIndexer …
type consistentIndex …
func NewConsistentIndex(be Backend) ConsistentIndexer { … }
func (ci *consistentIndex) ConsistentIndex() uint64 { … }
func (ci *consistentIndex) UnsafeConsistentIndex() uint64 { … }
func (ci *consistentIndex) SetConsistentIndex(v uint64, term uint64) { … }
func (ci *consistentIndex) UnsafeSave(tx backend.BatchTx) { … }
func (ci *consistentIndex) SetBackend(be Backend) { … }
func (ci *consistentIndex) ConsistentApplyingIndex() (uint64, uint64) { … }
func (ci *consistentIndex) SetConsistentApplyingIndex(v uint64, term uint64) { … }
func NewFakeConsistentIndex(index uint64) ConsistentIndexer { … }
type fakeConsistentIndex …
func (f *fakeConsistentIndex) ConsistentIndex() uint64 { … }
func (f *fakeConsistentIndex) ConsistentApplyingIndex() (uint64, uint64) { … }
func (f *fakeConsistentIndex) UnsafeConsistentIndex() uint64 { … }
func (f *fakeConsistentIndex) SetConsistentIndex(index uint64, term uint64) { … }
func (f *fakeConsistentIndex) SetConsistentApplyingIndex(index uint64, term uint64) { … }
func (f *fakeConsistentIndex) UnsafeSave(_ backend.BatchTx) { … }
func (f *fakeConsistentIndex) SetBackend(_ Backend) { … }
func UnsafeCreateMetaBucket(tx backend.BatchTx) { … }
func CreateMetaBucket(tx backend.BatchTx) { … }
func unsafeReadConsistentIndex(tx backend.ReadTx) (uint64, uint64) { … }
func ReadConsistentIndex(tx backend.ReadTx) (uint64, uint64) { … }
func UnsafeUpdateConsistentIndex(tx backend.BatchTx, index uint64, term uint64) { … }
func UpdateConsistentIndex(tx backend.BatchTx, index uint64, term uint64) { … }