Documentation
¶
Overview ¶
Package mocksearch provides an interface-compatible search index mock
Index ¶
- type IndexManager
- func (m *IndexManager[T]) Delete(ctx context.Context, id string) error
- func (m *IndexManager[T]) Index(ctx context.Context, id string, value any) error
- func (m *IndexManager[T]) Search(ctx context.Context, query string) (results []*T, err error)
- func (m *IndexManager[T]) Wipe(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexManager ¶
IndexManager is a mock IndexManager.
func (*IndexManager[T]) Delete ¶
func (m *IndexManager[T]) Delete(ctx context.Context, id string) error
Delete implements our interface.
Click to show internal directories.
Click to hide internal directories.