package
20.2.19+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
NewClock creates a new hybrid logical clock associated with the given physical clock.
NewHybridManualClock returns a new instance, initialized with specified timestamp.
NewManualClock returns a new instance, initialized with specified timestamp.
No description provided by the author
No description provided by the author
ParseTimestamp attempts to parse the string generated from Timestamp.String().
UnixNano returns the local machine's physical nanosecond unix epoch timestamp as a convenience to create a HLC via c := hlc.NewClock(hlc.UnixNano, ...).
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxTimestamp is the max value allowed for Timestamp.
MinTimestamp is the min value allowed for Timestamp.
# Structs
Clock is a hybrid logical clock.
HybridManualClock is a convenience type to facilitate creating a hybrid logical clock whose physical clock ticks with the wall clock, but that can be moved arbitrarily into the future or paused.
LegacyTimestamp is convertible to hlc.Timestamp, but uses the legacy encoding as it is encoded "below raft".
ManualClock is a convenience type to facilitate creating a hybrid logical clock whose physical clock is manually controlled.
Timestamp represents a state of the hybrid logical clock.