Documentation
¶
Index ¶
- type Client
- func (_m *Client) AddEventReport(ctx context.Context, req client.AddEventReportRequest) (client.AddEventReportResponse, error)
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) RestSearchEvents(ctx context.Context, req client.RestSearchEventsRequest) (client.RestSearchEventsResponse, error)
- type Client_AddEventReport_Call
- func (_c *Client_AddEventReport_Call) Return(resp client.AddEventReportResponse, err error) *Client_AddEventReport_Call
- func (_c *Client_AddEventReport_Call) Run(run func(ctx context.Context, req client.AddEventReportRequest)) *Client_AddEventReport_Call
- func (_c *Client_AddEventReport_Call) RunAndReturn(...) *Client_AddEventReport_Call
- type Client_Expecter
- type Client_RestSearchEvents_Call
- func (_c *Client_RestSearchEvents_Call) Return(events client.RestSearchEventsResponse, err error) *Client_RestSearchEvents_Call
- func (_c *Client_RestSearchEvents_Call) Run(run func(ctx context.Context, req client.RestSearchEventsRequest)) *Client_RestSearchEvents_Call
- func (_c *Client_RestSearchEvents_Call) RunAndReturn(...) *Client_RestSearchEvents_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) AddEventReport ¶
func (_m *Client) AddEventReport(ctx context.Context, req client.AddEventReportRequest) (client.AddEventReportResponse, error)
AddEventReport provides a mock function with given fields: ctx, req
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) RestSearchEvents ¶
func (_m *Client) RestSearchEvents(ctx context.Context, req client.RestSearchEventsRequest) (client.RestSearchEventsResponse, error)
RestSearchEvents provides a mock function with given fields: ctx, req
type Client_AddEventReport_Call ¶
Client_AddEventReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddEventReport'
func (*Client_AddEventReport_Call) Return ¶
func (_c *Client_AddEventReport_Call) Return(resp client.AddEventReportResponse, err error) *Client_AddEventReport_Call
func (*Client_AddEventReport_Call) Run ¶
func (_c *Client_AddEventReport_Call) Run(run func(ctx context.Context, req client.AddEventReportRequest)) *Client_AddEventReport_Call
func (*Client_AddEventReport_Call) RunAndReturn ¶
func (_c *Client_AddEventReport_Call) RunAndReturn(run func(context.Context, client.AddEventReportRequest) (client.AddEventReportResponse, error)) *Client_AddEventReport_Call
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) AddEventReport ¶
func (_e *Client_Expecter) AddEventReport(ctx interface{}, req interface{}) *Client_AddEventReport_Call
AddEventReport is a helper method to define mock.On call
- ctx context.Context
- req client.AddEventReportRequest
func (*Client_Expecter) RestSearchEvents ¶
func (_e *Client_Expecter) RestSearchEvents(ctx interface{}, req interface{}) *Client_RestSearchEvents_Call
RestSearchEvents is a helper method to define mock.On call
- ctx context.Context
- req client.RestSearchEventsRequest
type Client_RestSearchEvents_Call ¶
Client_RestSearchEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RestSearchEvents'
func (*Client_RestSearchEvents_Call) Return ¶
func (_c *Client_RestSearchEvents_Call) Return(events client.RestSearchEventsResponse, err error) *Client_RestSearchEvents_Call
func (*Client_RestSearchEvents_Call) Run ¶
func (_c *Client_RestSearchEvents_Call) Run(run func(ctx context.Context, req client.RestSearchEventsRequest)) *Client_RestSearchEvents_Call
func (*Client_RestSearchEvents_Call) RunAndReturn ¶
func (_c *Client_RestSearchEvents_Call) RunAndReturn(run func(context.Context, client.RestSearchEventsRequest) (client.RestSearchEventsResponse, error)) *Client_RestSearchEvents_Call