package
1.40.0
Repository: https://github.com/authzed/spicedb.git
Documentation: pkg.go.dev

# Functions

HLCKeyFunc is used to convert a simple HLC for use in maps.
HLCKeyLessThanFunc is used to compare keys created by the HLCKeyFunc.
HLCRevisionFromString parses a string into a hybrid logical clock revision.
NewCachedOptimizedRevisions returns a CachedOptimizedRevisions for the given configuration.
NewForHLC creates a new revision for the given hybrid logical clock.
NewForTime creates a new revision for the given time.
NewForTimestamp creates a new revision for the given timestamp.
NewForTransactionID creates a new revision for the given transaction ID.
NewHLCForTime creates a new revision for the given time.
NewRemoteClockRevisions returns a RemoteClockRevisions for the given configuration.
RevisionParser returns a ParsingFunc for the given RevisionKind.
TimestampIDKeyFunc is used to create keys for timestamps.
TimestampIDKeyLessThanFunc is used to create keys for timestamps.
TransactionIDKeyFunc is used to create keys for transaction IDs.
TransactionIDKeyLessThanFunc is used to create keys for transaction IDs.

# Constants

HybridLogicalClock is a revision that is a hybrid logical clock.
Timestamp is a revision that is a timestamp.
TransactionID is a revision that is a transaction ID.

# Structs

CachedOptimizedRevisions does caching and deduplication for requests for optimized revisions.
CommonDecoder is a revision decoder that can decode revisions of a given kind.
HLCRevision is a revision that is a hybrid logical clock, stored as two integers.
RemoteClockRevisions handles revision calculation for datastores that provide their own clocks.

# Interfaces

WithInexactFloat64 is an interface that can be implemented by a revision to provide an inexact float64 representation of the revision.
WithTimestampRevision is an interface that can be implemented by a revision to provide a timestamp.

# Type aliases

OptimizedRevisionFunction instructs the datastore to compute its own current optimized revision given the specific quantization, and return for how long it will remain valid.
ParsingFunc is a function that can parse a string into a revision.
RemoteNowFunction queries the datastore to get a current revision.
RevisionKind is an enum of the different kinds of revisions that can be used.
TimestampRevision is a revision that is a timestamp.
TransactionIDRevision is a revision that is a transaction ID.