Documentation ¶
Overview ¶
Package search is a generated GoMock package.
Index ¶
- type Executor
- type MockExecutor
- type MockExecutorMockRecorder
- type MockQuery
- type MockQueryMockRecorder
- type MockReadThroughSegmentSearcher
- type MockReadThroughSegmentSearcherMockRecorder
- type MockSearcher
- type MockSearcherMockRecorder
- type Query
- type ReadThroughSegmentSearcher
- type Searcher
- type Searchers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface { // Execute executes a query over the Executor's snapshot. Execute(ctx context.Context, q Query) (doc.QueryDocIterator, error) // Close closes the iterator. Close() error }
Executor is responsible for executing queries over a snapshot.
type MockExecutor ¶
type MockExecutor struct {
// contains filtered or unexported fields
}
MockExecutor is a mock of Executor interface.
func NewMockExecutor ¶
func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor
NewMockExecutor creates a new mock instance.
func (*MockExecutor) EXPECT ¶
func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecutor) Execute ¶
func (m *MockExecutor) Execute(ctx context.Context, q Query) (doc.QueryDocIterator, error)
Execute mocks base method.
type MockExecutorMockRecorder ¶
type MockExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutorMockRecorder is the mock recorder for MockExecutor.
func (*MockExecutorMockRecorder) Close ¶
func (mr *MockExecutorMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockExecutorMockRecorder) Execute ¶
func (mr *MockExecutorMockRecorder) Execute(ctx, q interface{}) *gomock.Call
Execute indicates an expected call of Execute.
type MockQuery ¶
type MockQuery struct {
// contains filtered or unexported fields
}
MockQuery is a mock of Query interface.
func NewMockQuery ¶
func NewMockQuery(ctrl *gomock.Controller) *MockQuery
NewMockQuery creates a new mock instance.
func (*MockQuery) EXPECT ¶
func (m *MockQuery) EXPECT() *MockQueryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockQueryMockRecorder ¶
type MockQueryMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryMockRecorder is the mock recorder for MockQuery.
func (*MockQueryMockRecorder) Equal ¶
func (mr *MockQueryMockRecorder) Equal(q interface{}) *gomock.Call
Equal indicates an expected call of Equal.
func (*MockQueryMockRecorder) Searcher ¶
func (mr *MockQueryMockRecorder) Searcher() *gomock.Call
Searcher indicates an expected call of Searcher.
func (*MockQueryMockRecorder) String ¶
func (mr *MockQueryMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*MockQueryMockRecorder) ToProto ¶
func (mr *MockQueryMockRecorder) ToProto() *gomock.Call
ToProto indicates an expected call of ToProto.
type MockReadThroughSegmentSearcher ¶ added in v1.2.0
type MockReadThroughSegmentSearcher struct {
// contains filtered or unexported fields
}
MockReadThroughSegmentSearcher is a mock of ReadThroughSegmentSearcher interface.
func NewMockReadThroughSegmentSearcher ¶ added in v1.2.0
func NewMockReadThroughSegmentSearcher(ctrl *gomock.Controller) *MockReadThroughSegmentSearcher
NewMockReadThroughSegmentSearcher creates a new mock instance.
func (*MockReadThroughSegmentSearcher) EXPECT ¶ added in v1.2.0
func (m *MockReadThroughSegmentSearcher) EXPECT() *MockReadThroughSegmentSearcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockReadThroughSegmentSearcherMockRecorder ¶ added in v1.2.0
type MockReadThroughSegmentSearcherMockRecorder struct {
// contains filtered or unexported fields
}
MockReadThroughSegmentSearcherMockRecorder is the mock recorder for MockReadThroughSegmentSearcher.
func (*MockReadThroughSegmentSearcherMockRecorder) Search ¶ added in v1.2.0
func (mr *MockReadThroughSegmentSearcherMockRecorder) Search(query, searcher interface{}) *gomock.Call
Search indicates an expected call of Search.
type MockSearcher ¶
type MockSearcher struct {
// contains filtered or unexported fields
}
MockSearcher is a mock of Searcher interface.
func NewMockSearcher ¶
func NewMockSearcher(ctrl *gomock.Controller) *MockSearcher
NewMockSearcher creates a new mock instance.
func (*MockSearcher) EXPECT ¶
func (m *MockSearcher) EXPECT() *MockSearcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSearcherMockRecorder ¶
type MockSearcherMockRecorder struct {
// contains filtered or unexported fields
}
MockSearcherMockRecorder is the mock recorder for MockSearcher.
func (*MockSearcherMockRecorder) Search ¶ added in v0.4.3
func (mr *MockSearcherMockRecorder) Search(arg0 interface{}) *gomock.Call
Search indicates an expected call of Search.
type Query ¶
type Query interface { fmt.Stringer // Searcher returns a Searcher for executing the query. Searcher() (Searcher, error) // Equal reports whether two queries are equivalent. Equal(q Query) bool // ToProto returns the Protobuf query struct corresponding to this query. ToProto() *querypb.Query }
Query is a search query for documents.
type ReadThroughSegmentSearcher ¶ added in v1.2.0
type ReadThroughSegmentSearcher interface {
Search(query Query, searcher Searcher) (postings.List, error)
}
ReadThroughSegmentSearcher searches a read through segment and potentially caches the result.