Documentation
¶
Overview ¶
Package mocksearch provides an interface-compatible search index mock
Index ¶
- type IndexManager
- func (m *IndexManager) Delete(ctx context.Context, id string) error
- func (m *IndexManager) Index(ctx context.Context, id string, value interface{}) error
- func (m *IndexManager) Search(ctx context.Context, query, accountID string) (ids []string, err error)
- func (m *IndexManager) SearchForAdmin(ctx context.Context, query string) (ids []string, err 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) 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 ¶
SearchForAdmin implements our interface.
Click to show internal directories.
Click to hide internal directories.