clock

package
v0.0.0-...-72dc9a7 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0, 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 Clock

type Clock struct {
	ServerId string
	Number   uint64
}

func (*Clock) CompareClock

func (c *Clock) CompareClock(c1 Clock) bool

Compare clock

func (*Clock) GetClock

func (c *Clock) GetClock()

Get clock with increase number

type Protocol

type Protocol interface {
	GetClock()
	CompareClock(c Clock) bool
}

Jump to

Keyboard shortcuts

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