indexstorage

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL