mocksearch

package
v0.0.0-...-9518a5e Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT 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 struct {
	mock.Mock
}

IndexManager is a mock IndexManager.

func (*IndexManager) Delete

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

Delete implements our interface.

func (*IndexManager) Index

func (m *IndexManager) Index(ctx context.Context, id string, value interface{}) error

Index implements our interface.

func (*IndexManager) Search

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

Search implements our interface.

func (*IndexManager) SearchForAdmin

func (m *IndexManager) SearchForAdmin(ctx context.Context, query string) (ids []string, err error)

SearchForAdmin implements our interface.

Jump to

Keyboard shortcuts

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