memory

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Clock types.Clock
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *Provider

func (*Provider) Capabilities

func (p *Provider) Capabilities(context.Context) (types.CapabilitySet, error)

func (*Provider) DeleteBySource

func (p *Provider) DeleteBySource(_ context.Context, index, registrationKey string, sourceIDs []string) error

func (*Provider) DeleteDocuments

func (p *Provider) DeleteDocuments(_ context.Context, index string, ids []string) error

func (*Provider) EnsureIndex

func (p *Provider) EnsureIndex(_ context.Context, def types.IndexDefinition) error

func (*Provider) Health

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) ReplaceDocuments

func (p *Provider) ReplaceDocuments(_ context.Context, index, registrationKey string, sourceIDs []string, docs []types.Document) error

func (*Provider) ResetRegistration added in v0.2.0

func (p *Provider) ResetRegistration(_ context.Context, index, registrationKey string) error

func (*Provider) Search

func (*Provider) SearchBatch

func (p *Provider) SearchBatch(ctx context.Context, requests []types.SearchRequest) ([]types.SearchResultPage, error)

func (*Provider) Suggest

func (*Provider) UpsertDocuments

func (p *Provider) UpsertDocuments(_ context.Context, index string, docs []types.Document) error

Jump to

Keyboard shortcuts

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