vecmt2dagidx

package
v1.0.2-rc.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	*vecmt.Index
}

func Wrap

func Wrap(v *vecmt.Index) *Adapter

func (*Adapter) GetMergedHighestBefore

func (v *Adapter) GetMergedHighestBefore(id hash.Event) dagidx.HighestBeforeSeq

type AdapterSeq

type AdapterSeq struct {
	*vecmt.HighestBefore
}

func (AdapterSeq) Get

func (b AdapterSeq) Get(i idx.Validator) dagidx.Seq

Get i's position in the byte-encoded vector clock

func (AdapterSeq) Size

func (b AdapterSeq) Size() int

Size of the vector clock

type BranchSeq

type BranchSeq struct {
	vecfc.BranchSeq
}

func (*BranchSeq) MinSeq

func (b *BranchSeq) MinSeq() idx.Event

MinSeq is a minimum observed e.Seq in the branch

func (*BranchSeq) Seq

func (b *BranchSeq) Seq() idx.Event

Seq is a maximum observed e.Seq in the branch

Jump to

Keyboard shortcuts

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