package
1.0.1
Repository: https://github.com/auxten/postgresql-parser.git
Documentation: pkg.go.dev

# Functions

NewClock creates a new hybrid logical clock associated with the given physical clock.
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.
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.