Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Strategy ¶
type Strategy struct {
V1Consistency *v1.Consistency
}
Strategy represents the strategy that a request can use in order to trade-off speed with latency. For more info see: https://authzed.com/docs/spicedb/concepts/consistency https://en.wikipedia.org/wiki/PACELC_theorem
func AtLeast ¶
AtLeast configures the request to evaluate at the provided database revision or newer.
This should be used to avoid read-after-write inconsistencies.
func Full ¶
func Full() *Strategy
Full configures the request to evaluate at the most recent revision of the database.
This is the least performant, but guarantees read consistency.
func MinLatency ¶
func MinLatency() *Strategy
MinLatency configures the request to evaluate at the database's preferred revision.
This provides the optimal performance and is the default if no consistency is specified.