Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexStorage ¶
type IndexStorage interface {
LookupIndices(context.Context, []string) ([]string, error) // Returns indices for specified keys
// WriteIndex accepts an index update. Backends may buffer the update, so a nil
// error does not necessarily mean it is durable. Shutdown attempts to drain all
// accepted updates; permanent failures remain observable through backend metrics
// and may require running backfill-index.
WriteIndex(context.Context, []string, string) error
Shutdown() error // Drains accepted updates and releases backend resources
}
func NewIndexStorage ¶
func NewIndexStorage(providerType string) (IndexStorage, error)
NewIndexStorage instantiates a new IndexStorage provider based on the requested type
Click to show internal directories.
Click to hide internal directories.