Documentation ¶
Index ¶
- type MockIngesterClient
- type MockIngesterClient_Expecter
- type MockIngesterClient_Push_Call
- func (_c *MockIngesterClient_Push_Call) Return(_a0 *connect.Response[pushv1.PushResponse], _a1 error) *MockIngesterClient_Push_Call
- func (_c *MockIngesterClient_Push_Call) Run(run func(_a0 context.Context, _a1 *model.PushRequest)) *MockIngesterClient_Push_Call
- func (_c *MockIngesterClient_Push_Call) RunAndReturn(...) *MockIngesterClient_Push_Call
- type MockSegmentWriterClient
- type MockSegmentWriterClient_Expecter
- type MockSegmentWriterClient_Push_Call
- func (_c *MockSegmentWriterClient_Push_Call) Return(_a0 *segmentwriterv1.PushResponse, _a1 error) *MockSegmentWriterClient_Push_Call
- func (_c *MockSegmentWriterClient_Push_Call) Run(run func(_a0 context.Context, _a1 *segmentwriterv1.PushRequest)) *MockSegmentWriterClient_Push_Call
- func (_c *MockSegmentWriterClient_Push_Call) RunAndReturn(...) *MockSegmentWriterClient_Push_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIngesterClient ¶
MockIngesterClient is an autogenerated mock type for the IngesterClient type
func NewMockIngesterClient ¶
func NewMockIngesterClient(t interface { mock.TestingT Cleanup(func()) }) *MockIngesterClient
NewMockIngesterClient creates a new instance of MockIngesterClient. 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 (*MockIngesterClient) EXPECT ¶
func (_m *MockIngesterClient) EXPECT() *MockIngesterClient_Expecter
func (*MockIngesterClient) Push ¶
func (_m *MockIngesterClient) Push(_a0 context.Context, _a1 *model.PushRequest) (*connect.Response[pushv1.PushResponse], error)
Push provides a mock function with given fields: _a0, _a1
type MockIngesterClient_Expecter ¶
type MockIngesterClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIngesterClient_Expecter) Push ¶
func (_e *MockIngesterClient_Expecter) Push(_a0 interface{}, _a1 interface{}) *MockIngesterClient_Push_Call
Push is a helper method to define mock.On call
- _a0 context.Context
- _a1 *model.PushRequest
type MockIngesterClient_Push_Call ¶
MockIngesterClient_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'
func (*MockIngesterClient_Push_Call) Return ¶
func (_c *MockIngesterClient_Push_Call) Return(_a0 *connect.Response[pushv1.PushResponse], _a1 error) *MockIngesterClient_Push_Call
func (*MockIngesterClient_Push_Call) Run ¶
func (_c *MockIngesterClient_Push_Call) Run(run func(_a0 context.Context, _a1 *model.PushRequest)) *MockIngesterClient_Push_Call
func (*MockIngesterClient_Push_Call) RunAndReturn ¶
func (_c *MockIngesterClient_Push_Call) RunAndReturn(run func(context.Context, *model.PushRequest) (*connect.Response[pushv1.PushResponse], error)) *MockIngesterClient_Push_Call
type MockSegmentWriterClient ¶
MockSegmentWriterClient is an autogenerated mock type for the SegmentWriterClient type
func NewMockSegmentWriterClient ¶
func NewMockSegmentWriterClient(t interface { mock.TestingT Cleanup(func()) }) *MockSegmentWriterClient
NewMockSegmentWriterClient creates a new instance of MockSegmentWriterClient. 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 (*MockSegmentWriterClient) EXPECT ¶
func (_m *MockSegmentWriterClient) EXPECT() *MockSegmentWriterClient_Expecter
func (*MockSegmentWriterClient) Push ¶
func (_m *MockSegmentWriterClient) Push(_a0 context.Context, _a1 *segmentwriterv1.PushRequest) (*segmentwriterv1.PushResponse, error)
Push provides a mock function with given fields: _a0, _a1
type MockSegmentWriterClient_Expecter ¶
type MockSegmentWriterClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSegmentWriterClient_Expecter) Push ¶
func (_e *MockSegmentWriterClient_Expecter) Push(_a0 interface{}, _a1 interface{}) *MockSegmentWriterClient_Push_Call
Push is a helper method to define mock.On call
- _a0 context.Context
- _a1 *segmentwriterv1.PushRequest
type MockSegmentWriterClient_Push_Call ¶
MockSegmentWriterClient_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'
func (*MockSegmentWriterClient_Push_Call) Return ¶
func (_c *MockSegmentWriterClient_Push_Call) Return(_a0 *segmentwriterv1.PushResponse, _a1 error) *MockSegmentWriterClient_Push_Call
func (*MockSegmentWriterClient_Push_Call) Run ¶
func (_c *MockSegmentWriterClient_Push_Call) Run(run func(_a0 context.Context, _a1 *segmentwriterv1.PushRequest)) *MockSegmentWriterClient_Push_Call
func (*MockSegmentWriterClient_Push_Call) RunAndReturn ¶
func (_c *MockSegmentWriterClient_Push_Call) RunAndReturn(run func(context.Context, *segmentwriterv1.PushRequest) (*segmentwriterv1.PushResponse, error)) *MockSegmentWriterClient_Push_Call