Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPhysical ¶
ExtractPhysical returns a ts's physical part.
func GetPhysical ¶
GetPhysical returns physical from an instant time with millisecond precision.
func GetTimeFromTS ¶
GetTimeFromTS extracts time.Time from a timestamp.
Types ¶
type Oracle ¶
type Oracle interface { GetTimestamp(ctx context.Context) (uint64, error) GetTimestampAsync(ctx context.Context) Future GetLowResolutionTimestamp(ctx context.Context) (uint64, error) GetLowResolutionTimestampAsync(ctx context.Context) Future IsExpired(lockTimestamp uint64, TTL uint64) bool UntilExpired(lockTimeStamp uint64, TTL uint64) int64 Close() }
Oracle is the interface that provides strictly ascending timestamps.
Click to show internal directories.
Click to hide internal directories.