mocksearch

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mocksearch provides an interface-compatible search index mock

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexManager

type IndexManager[T any] struct {
	mock.Mock
}

IndexManager is a mock IndexManager.

func (*IndexManager[T]) Delete

func (m *IndexManager[T]) Delete(ctx context.Context, id string) error

Delete implements our interface.

func (*IndexManager[T]) Index

func (m *IndexManager[T]) Index(ctx context.Context, id string, value any) error

Index implements our interface.

func (*IndexManager[T]) Search

func (m *IndexManager[T]) Search(ctx context.Context, query string) (results []*T, err error)

Search implements our interface.

func (*IndexManager[T]) Wipe

func (m *IndexManager[T]) Wipe(ctx context.Context) error

Jump to

Keyboard shortcuts

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