Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtoTimestamp ¶ added in v1.24.0
func ProtoTimestamp(c *Clock) *timestamppb.Timestamp
ProtoTimestamp returns timestamppb.New(UTC(c))
Types ¶
type Clock ¶
type Clock = clockpb.HybridLogicalClock
func Next ¶
func Next(prior *Clock, source commonclock.TimeSource) *Clock
Next generates the next clock timestamp given the current clock. HybridLogicalClock requires the previous clock to ensure that time doesn't move backwards and the next clock is monotonically increasing.
Click to show internal directories.
Click to hide internal directories.