vectorclock

package
v0.0.0-...-3a7704f Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VectorClock

type VectorClock struct {
	// contains filtered or unexported fields
}

func NewVectorClock

func NewVectorClock(number_of_nodes int) *VectorClock

func (*VectorClock) Compare

func (vc *VectorClock) Compare(clock []int64) int

func (*VectorClock) GetClock

func (vc *VectorClock) GetClock() []int64

func (*VectorClock) Increment

func (vc *VectorClock) Increment(node_id int)

func (*VectorClock) Update

func (vc *VectorClock) Update(clock []int64)

Jump to

Keyboard shortcuts

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