Documentation ¶
Index ¶
Constants ¶
View Source
const DisableGC = time.Duration(math.MaxInt64)
DisableGC is a convenient constant for setting the garbage collection interval high enough that it will never run.
View Source
const (
Engine = "memory"
)
Variables ¶
View Source
var ParseRevisionString = revisions.RevisionParser(revisions.Timestamp)
Functions ¶
func NewMemdbDatastore ¶
func NewMemdbDatastore( watchBufferLength uint16, revisionQuantization, gcWindow time.Duration, ) (datastore.Datastore, error)
NewMemdbDatastore creates a new Datastore compliant datastore backed by memdb.
If the watchBufferLength value of 0 is set then a default value of 128 will be used.
func NewSerializationMaxRetriesReachedErr ¶ added in v1.26.0
NewSerializationMaxRetriesReachedErr constructs a new max retries reached error.
Types ¶
type ErrSerializationMaxRetriesReached ¶ added in v1.26.0
type ErrSerializationMaxRetriesReached struct {
// contains filtered or unexported fields
}
ErrSerializationMaxRetriesReached occurs when a write request has reached its maximum number of retries due to serialization errors.
func (ErrSerializationMaxRetriesReached) GRPCStatus ¶ added in v1.26.0
func (err ErrSerializationMaxRetriesReached) GRPCStatus() *status.Status
GRPCStatus implements retrieving the gRPC status for the error.
Click to show internal directories.
Click to hide internal directories.