Documentation
¶
Index ¶
- type Engine
- func (_m *Engine) Delete(id string) error
- func (_m *Engine) DocCount() (uint64, error)
- func (_m *Engine) EXPECT() *Engine_Expecter
- func (_m *Engine) Move(id string, parentid string, target string) error
- func (_m *Engine) Purge(id string) error
- func (_m *Engine) Restore(id string) error
- func (_m *Engine) Search(ctx context.Context, req *v0.SearchIndexRequest) (*v0.SearchIndexResponse, error)
- func (_m *Engine) Upsert(id string, r engine.Resource) error
- type Engine_Delete_Call
- type Engine_DocCount_Call
- type Engine_Expecter
- func (_e *Engine_Expecter) Delete(id interface{}) *Engine_Delete_Call
- func (_e *Engine_Expecter) DocCount() *Engine_DocCount_Call
- func (_e *Engine_Expecter) Move(id interface{}, parentid interface{}, target interface{}) *Engine_Move_Call
- func (_e *Engine_Expecter) Purge(id interface{}) *Engine_Purge_Call
- func (_e *Engine_Expecter) Restore(id interface{}) *Engine_Restore_Call
- func (_e *Engine_Expecter) Search(ctx interface{}, req interface{}) *Engine_Search_Call
- func (_e *Engine_Expecter) Upsert(id interface{}, r interface{}) *Engine_Upsert_Call
- type Engine_Move_Call
- type Engine_Purge_Call
- type Engine_Restore_Call
- type Engine_Search_Call
- type Engine_Upsert_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
Engine is an autogenerated mock type for the Engine type
func NewEngine ¶
NewEngine creates a new instance of Engine. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Engine) EXPECT ¶
func (_m *Engine) EXPECT() *Engine_Expecter
func (*Engine) Search ¶
func (_m *Engine) Search(ctx context.Context, req *v0.SearchIndexRequest) (*v0.SearchIndexResponse, error)
Search provides a mock function with given fields: ctx, req
type Engine_Delete_Call ¶
Engine_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Engine_Delete_Call) Return ¶
func (_c *Engine_Delete_Call) Return(_a0 error) *Engine_Delete_Call
func (*Engine_Delete_Call) Run ¶
func (_c *Engine_Delete_Call) Run(run func(id string)) *Engine_Delete_Call
func (*Engine_Delete_Call) RunAndReturn ¶
func (_c *Engine_Delete_Call) RunAndReturn(run func(string) error) *Engine_Delete_Call
type Engine_DocCount_Call ¶
Engine_DocCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DocCount'
func (*Engine_DocCount_Call) Return ¶
func (_c *Engine_DocCount_Call) Return(_a0 uint64, _a1 error) *Engine_DocCount_Call
func (*Engine_DocCount_Call) Run ¶
func (_c *Engine_DocCount_Call) Run(run func()) *Engine_DocCount_Call
func (*Engine_DocCount_Call) RunAndReturn ¶
func (_c *Engine_DocCount_Call) RunAndReturn(run func() (uint64, error)) *Engine_DocCount_Call
type Engine_Expecter ¶
type Engine_Expecter struct {
// contains filtered or unexported fields
}
func (*Engine_Expecter) Delete ¶
func (_e *Engine_Expecter) Delete(id interface{}) *Engine_Delete_Call
Delete is a helper method to define mock.On call
- id string
func (*Engine_Expecter) DocCount ¶
func (_e *Engine_Expecter) DocCount() *Engine_DocCount_Call
DocCount is a helper method to define mock.On call
func (*Engine_Expecter) Move ¶
func (_e *Engine_Expecter) Move(id interface{}, parentid interface{}, target interface{}) *Engine_Move_Call
Move is a helper method to define mock.On call
- id string
- parentid string
- target string
func (*Engine_Expecter) Purge ¶
func (_e *Engine_Expecter) Purge(id interface{}) *Engine_Purge_Call
Purge is a helper method to define mock.On call
- id string
func (*Engine_Expecter) Restore ¶
func (_e *Engine_Expecter) Restore(id interface{}) *Engine_Restore_Call
Restore is a helper method to define mock.On call
- id string
func (*Engine_Expecter) Search ¶
func (_e *Engine_Expecter) Search(ctx interface{}, req interface{}) *Engine_Search_Call
Search is a helper method to define mock.On call
- ctx context.Context
- req *v0.SearchIndexRequest
func (*Engine_Expecter) Upsert ¶
func (_e *Engine_Expecter) Upsert(id interface{}, r interface{}) *Engine_Upsert_Call
Upsert is a helper method to define mock.On call
- id string
- r engine.Resource
type Engine_Move_Call ¶
Engine_Move_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Move'
func (*Engine_Move_Call) Return ¶
func (_c *Engine_Move_Call) Return(_a0 error) *Engine_Move_Call
func (*Engine_Move_Call) Run ¶
func (_c *Engine_Move_Call) Run(run func(id string, parentid string, target string)) *Engine_Move_Call
func (*Engine_Move_Call) RunAndReturn ¶
func (_c *Engine_Move_Call) RunAndReturn(run func(string, string, string) error) *Engine_Move_Call
type Engine_Purge_Call ¶
Engine_Purge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Purge'
func (*Engine_Purge_Call) Return ¶
func (_c *Engine_Purge_Call) Return(_a0 error) *Engine_Purge_Call
func (*Engine_Purge_Call) Run ¶
func (_c *Engine_Purge_Call) Run(run func(id string)) *Engine_Purge_Call
func (*Engine_Purge_Call) RunAndReturn ¶
func (_c *Engine_Purge_Call) RunAndReturn(run func(string) error) *Engine_Purge_Call
type Engine_Restore_Call ¶
Engine_Restore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Restore'
func (*Engine_Restore_Call) Return ¶
func (_c *Engine_Restore_Call) Return(_a0 error) *Engine_Restore_Call
func (*Engine_Restore_Call) Run ¶
func (_c *Engine_Restore_Call) Run(run func(id string)) *Engine_Restore_Call
func (*Engine_Restore_Call) RunAndReturn ¶
func (_c *Engine_Restore_Call) RunAndReturn(run func(string) error) *Engine_Restore_Call
type Engine_Search_Call ¶
Engine_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'
func (*Engine_Search_Call) Return ¶
func (_c *Engine_Search_Call) Return(_a0 *v0.SearchIndexResponse, _a1 error) *Engine_Search_Call
func (*Engine_Search_Call) Run ¶
func (_c *Engine_Search_Call) Run(run func(ctx context.Context, req *v0.SearchIndexRequest)) *Engine_Search_Call
func (*Engine_Search_Call) RunAndReturn ¶
func (_c *Engine_Search_Call) RunAndReturn(run func(context.Context, *v0.SearchIndexRequest) (*v0.SearchIndexResponse, error)) *Engine_Search_Call
type Engine_Upsert_Call ¶
Engine_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*Engine_Upsert_Call) Return ¶
func (_c *Engine_Upsert_Call) Return(_a0 error) *Engine_Upsert_Call
func (*Engine_Upsert_Call) Run ¶
func (_c *Engine_Upsert_Call) Run(run func(id string, r engine.Resource)) *Engine_Upsert_Call
func (*Engine_Upsert_Call) RunAndReturn ¶
func (_c *Engine_Upsert_Call) RunAndReturn(run func(string, engine.Resource) error) *Engine_Upsert_Call