Documentation ¶
Index ¶
- type Client
- func (_m *Client) CreateSearchJob(ctx context.Context, req *client.CreateSearchJobReq) (*client.CreateSearchJobRes, error)
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) GetSearchJobByID(ctx context.Context, req *client.GetSearchJobByIDReq) (*client.GetSearchJobByIDRes, error)
- func (_m *Client) GetSearchJobResults(ctx context.Context, req *client.GetSearchJobResultsReq) (*client.GetSearchJobResultsRes, error)
- type Client_CreateSearchJob_Call
- func (_c *Client_CreateSearchJob_Call) Return(_a0 *client.CreateSearchJobRes, _a1 error) *Client_CreateSearchJob_Call
- func (_c *Client_CreateSearchJob_Call) Run(run func(ctx context.Context, req *client.CreateSearchJobReq)) *Client_CreateSearchJob_Call
- func (_c *Client_CreateSearchJob_Call) RunAndReturn(...) *Client_CreateSearchJob_Call
- type Client_Expecter
- func (_e *Client_Expecter) CreateSearchJob(ctx interface{}, req interface{}) *Client_CreateSearchJob_Call
- func (_e *Client_Expecter) GetSearchJobByID(ctx interface{}, req interface{}) *Client_GetSearchJobByID_Call
- func (_e *Client_Expecter) GetSearchJobResults(ctx interface{}, req interface{}) *Client_GetSearchJobResults_Call
- type Client_GetSearchJobByID_Call
- func (_c *Client_GetSearchJobByID_Call) Return(_a0 *client.GetSearchJobByIDRes, _a1 error) *Client_GetSearchJobByID_Call
- func (_c *Client_GetSearchJobByID_Call) Run(run func(ctx context.Context, req *client.GetSearchJobByIDReq)) *Client_GetSearchJobByID_Call
- func (_c *Client_GetSearchJobByID_Call) RunAndReturn(...) *Client_GetSearchJobByID_Call
- type Client_GetSearchJobResults_Call
- func (_c *Client_GetSearchJobResults_Call) Return(_a0 *client.GetSearchJobResultsRes, _a1 error) *Client_GetSearchJobResults_Call
- func (_c *Client_GetSearchJobResults_Call) Run(run func(ctx context.Context, req *client.GetSearchJobResultsReq)) *Client_GetSearchJobResults_Call
- func (_c *Client_GetSearchJobResults_Call) RunAndReturn(...) *Client_GetSearchJobResults_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. 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 (*Client) CreateSearchJob ¶
func (_m *Client) CreateSearchJob(ctx context.Context, req *client.CreateSearchJobReq) (*client.CreateSearchJobRes, error)
CreateSearchJob provides a mock function with given fields: ctx, req
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) GetSearchJobByID ¶
func (_m *Client) GetSearchJobByID(ctx context.Context, req *client.GetSearchJobByIDReq) (*client.GetSearchJobByIDRes, error)
GetSearchJobByID provides a mock function with given fields: ctx, req
func (*Client) GetSearchJobResults ¶
func (_m *Client) GetSearchJobResults(ctx context.Context, req *client.GetSearchJobResultsReq) (*client.GetSearchJobResultsRes, error)
GetSearchJobResults provides a mock function with given fields: ctx, req
type Client_CreateSearchJob_Call ¶
Client_CreateSearchJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSearchJob'
func (*Client_CreateSearchJob_Call) Return ¶
func (_c *Client_CreateSearchJob_Call) Return(_a0 *client.CreateSearchJobRes, _a1 error) *Client_CreateSearchJob_Call
func (*Client_CreateSearchJob_Call) Run ¶
func (_c *Client_CreateSearchJob_Call) Run(run func(ctx context.Context, req *client.CreateSearchJobReq)) *Client_CreateSearchJob_Call
func (*Client_CreateSearchJob_Call) RunAndReturn ¶
func (_c *Client_CreateSearchJob_Call) RunAndReturn(run func(context.Context, *client.CreateSearchJobReq) (*client.CreateSearchJobRes, error)) *Client_CreateSearchJob_Call
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) CreateSearchJob ¶
func (_e *Client_Expecter) CreateSearchJob(ctx interface{}, req interface{}) *Client_CreateSearchJob_Call
CreateSearchJob is a helper method to define mock.On call
- ctx context.Context
- req *client.CreateSearchJobReq
func (*Client_Expecter) GetSearchJobByID ¶
func (_e *Client_Expecter) GetSearchJobByID(ctx interface{}, req interface{}) *Client_GetSearchJobByID_Call
GetSearchJobByID is a helper method to define mock.On call
- ctx context.Context
- req *client.GetSearchJobByIDReq
func (*Client_Expecter) GetSearchJobResults ¶
func (_e *Client_Expecter) GetSearchJobResults(ctx interface{}, req interface{}) *Client_GetSearchJobResults_Call
GetSearchJobResults is a helper method to define mock.On call
- ctx context.Context
- req *client.GetSearchJobResultsReq
type Client_GetSearchJobByID_Call ¶
Client_GetSearchJobByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSearchJobByID'
func (*Client_GetSearchJobByID_Call) Return ¶
func (_c *Client_GetSearchJobByID_Call) Return(_a0 *client.GetSearchJobByIDRes, _a1 error) *Client_GetSearchJobByID_Call
func (*Client_GetSearchJobByID_Call) Run ¶
func (_c *Client_GetSearchJobByID_Call) Run(run func(ctx context.Context, req *client.GetSearchJobByIDReq)) *Client_GetSearchJobByID_Call
func (*Client_GetSearchJobByID_Call) RunAndReturn ¶
func (_c *Client_GetSearchJobByID_Call) RunAndReturn(run func(context.Context, *client.GetSearchJobByIDReq) (*client.GetSearchJobByIDRes, error)) *Client_GetSearchJobByID_Call
type Client_GetSearchJobResults_Call ¶
Client_GetSearchJobResults_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSearchJobResults'
func (*Client_GetSearchJobResults_Call) Return ¶
func (_c *Client_GetSearchJobResults_Call) Return(_a0 *client.GetSearchJobResultsRes, _a1 error) *Client_GetSearchJobResults_Call
func (*Client_GetSearchJobResults_Call) Run ¶
func (_c *Client_GetSearchJobResults_Call) Run(run func(ctx context.Context, req *client.GetSearchJobResultsReq)) *Client_GetSearchJobResults_Call
func (*Client_GetSearchJobResults_Call) RunAndReturn ¶
func (_c *Client_GetSearchJobResults_Call) RunAndReturn(run func(context.Context, *client.GetSearchJobResultsReq) (*client.GetSearchJobResultsRes, error)) *Client_GetSearchJobResults_Call