Documentation ¶
Index ¶
- type MockInterceptor
- type MockInterceptorBuilder
- type MockInterceptorBuilder_Build_Call
- func (_c *MockInterceptorBuilder_Build_Call) Return(_a0 interceptors.BasicInterceptor) *MockInterceptorBuilder_Build_Call
- func (_c *MockInterceptorBuilder_Build_Call) Run(run func(param interceptors.InterceptorBuildParam)) *MockInterceptorBuilder_Build_Call
- func (_c *MockInterceptorBuilder_Build_Call) RunAndReturn(run func(interceptors.InterceptorBuildParam) interceptors.BasicInterceptor) *MockInterceptorBuilder_Build_Call
- type MockInterceptorBuilder_Expecter
- type MockInterceptorWithReady
- func (_m *MockInterceptorWithReady) Close()
- func (_m *MockInterceptorWithReady) DoAppend(ctx context.Context, msg message.MutableMessage, ...) (message.MessageID, error)
- func (_m *MockInterceptorWithReady) EXPECT() *MockInterceptorWithReady_Expecter
- func (_m *MockInterceptorWithReady) Ready() <-chan struct{}
- type MockInterceptorWithReady_Close_Call
- func (_c *MockInterceptorWithReady_Close_Call) Return() *MockInterceptorWithReady_Close_Call
- func (_c *MockInterceptorWithReady_Close_Call) Run(run func()) *MockInterceptorWithReady_Close_Call
- func (_c *MockInterceptorWithReady_Close_Call) RunAndReturn(run func()) *MockInterceptorWithReady_Close_Call
- type MockInterceptorWithReady_DoAppend_Call
- func (_c *MockInterceptorWithReady_DoAppend_Call) Return(_a0 message.MessageID, _a1 error) *MockInterceptorWithReady_DoAppend_Call
- func (_c *MockInterceptorWithReady_DoAppend_Call) Run(run func(ctx context.Context, msg message.MutableMessage, ...)) *MockInterceptorWithReady_DoAppend_Call
- func (_c *MockInterceptorWithReady_DoAppend_Call) RunAndReturn(...) *MockInterceptorWithReady_DoAppend_Call
- type MockInterceptorWithReady_Expecter
- func (_e *MockInterceptorWithReady_Expecter) Close() *MockInterceptorWithReady_Close_Call
- func (_e *MockInterceptorWithReady_Expecter) DoAppend(ctx interface{}, msg interface{}, append interface{}) *MockInterceptorWithReady_DoAppend_Call
- func (_e *MockInterceptorWithReady_Expecter) Ready() *MockInterceptorWithReady_Ready_Call
- type MockInterceptorWithReady_Ready_Call
- func (_c *MockInterceptorWithReady_Ready_Call) Return(_a0 <-chan struct{}) *MockInterceptorWithReady_Ready_Call
- func (_c *MockInterceptorWithReady_Ready_Call) Run(run func()) *MockInterceptorWithReady_Ready_Call
- func (_c *MockInterceptorWithReady_Ready_Call) RunAndReturn(run func() <-chan struct{}) *MockInterceptorWithReady_Ready_Call
- type MockInterceptor_Close_Call
- type MockInterceptor_DoAppend_Call
- func (_c *MockInterceptor_DoAppend_Call) Return(_a0 message.MessageID, _a1 error) *MockInterceptor_DoAppend_Call
- func (_c *MockInterceptor_DoAppend_Call) Run(run func(ctx context.Context, msg message.MutableMessage, ...)) *MockInterceptor_DoAppend_Call
- func (_c *MockInterceptor_DoAppend_Call) RunAndReturn(...) *MockInterceptor_DoAppend_Call
- type MockInterceptor_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterceptor ¶
MockInterceptor is an autogenerated mock type for the Interceptor type
func NewMockInterceptor ¶
func NewMockInterceptor(t interface { mock.TestingT Cleanup(func()) }) *MockInterceptor
NewMockInterceptor creates a new instance of MockInterceptor. 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 (*MockInterceptor) Close ¶
func (_m *MockInterceptor) Close()
Close provides a mock function with given fields:
func (*MockInterceptor) DoAppend ¶
func (_m *MockInterceptor) DoAppend(ctx context.Context, msg message.MutableMessage, append func(context.Context, message.MutableMessage) (message.MessageID, error)) (message.MessageID, error)
DoAppend provides a mock function with given fields: ctx, msg, append
func (*MockInterceptor) EXPECT ¶
func (_m *MockInterceptor) EXPECT() *MockInterceptor_Expecter
type MockInterceptorBuilder ¶
MockInterceptorBuilder is an autogenerated mock type for the InterceptorBuilder type
func NewMockInterceptorBuilder ¶
func NewMockInterceptorBuilder(t interface { mock.TestingT Cleanup(func()) }) *MockInterceptorBuilder
NewMockInterceptorBuilder creates a new instance of MockInterceptorBuilder. 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 (*MockInterceptorBuilder) Build ¶
func (_m *MockInterceptorBuilder) Build(param interceptors.InterceptorBuildParam) interceptors.BasicInterceptor
Build provides a mock function with given fields: param
func (*MockInterceptorBuilder) EXPECT ¶
func (_m *MockInterceptorBuilder) EXPECT() *MockInterceptorBuilder_Expecter
type MockInterceptorBuilder_Build_Call ¶
MockInterceptorBuilder_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build'
func (*MockInterceptorBuilder_Build_Call) Return ¶
func (_c *MockInterceptorBuilder_Build_Call) Return(_a0 interceptors.BasicInterceptor) *MockInterceptorBuilder_Build_Call
func (*MockInterceptorBuilder_Build_Call) Run ¶
func (_c *MockInterceptorBuilder_Build_Call) Run(run func(param interceptors.InterceptorBuildParam)) *MockInterceptorBuilder_Build_Call
func (*MockInterceptorBuilder_Build_Call) RunAndReturn ¶
func (_c *MockInterceptorBuilder_Build_Call) RunAndReturn(run func(interceptors.InterceptorBuildParam) interceptors.BasicInterceptor) *MockInterceptorBuilder_Build_Call
type MockInterceptorBuilder_Expecter ¶
type MockInterceptorBuilder_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterceptorBuilder_Expecter) Build ¶
func (_e *MockInterceptorBuilder_Expecter) Build(param interface{}) *MockInterceptorBuilder_Build_Call
Build is a helper method to define mock.On call
- param interceptors.InterceptorBuildParam
type MockInterceptorWithReady ¶
MockInterceptorWithReady is an autogenerated mock type for the InterceptorWithReady type
func NewMockInterceptorWithReady ¶
func NewMockInterceptorWithReady(t interface { mock.TestingT Cleanup(func()) }) *MockInterceptorWithReady
NewMockInterceptorWithReady creates a new instance of MockInterceptorWithReady. 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 (*MockInterceptorWithReady) Close ¶
func (_m *MockInterceptorWithReady) Close()
Close provides a mock function with given fields:
func (*MockInterceptorWithReady) DoAppend ¶
func (_m *MockInterceptorWithReady) DoAppend(ctx context.Context, msg message.MutableMessage, append func(context.Context, message.MutableMessage) (message.MessageID, error)) (message.MessageID, error)
DoAppend provides a mock function with given fields: ctx, msg, append
func (*MockInterceptorWithReady) EXPECT ¶
func (_m *MockInterceptorWithReady) EXPECT() *MockInterceptorWithReady_Expecter
func (*MockInterceptorWithReady) Ready ¶
func (_m *MockInterceptorWithReady) Ready() <-chan struct{}
Ready provides a mock function with given fields:
type MockInterceptorWithReady_Close_Call ¶
MockInterceptorWithReady_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockInterceptorWithReady_Close_Call) Return ¶
func (_c *MockInterceptorWithReady_Close_Call) Return() *MockInterceptorWithReady_Close_Call
func (*MockInterceptorWithReady_Close_Call) Run ¶
func (_c *MockInterceptorWithReady_Close_Call) Run(run func()) *MockInterceptorWithReady_Close_Call
func (*MockInterceptorWithReady_Close_Call) RunAndReturn ¶
func (_c *MockInterceptorWithReady_Close_Call) RunAndReturn(run func()) *MockInterceptorWithReady_Close_Call
type MockInterceptorWithReady_DoAppend_Call ¶
MockInterceptorWithReady_DoAppend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoAppend'
func (*MockInterceptorWithReady_DoAppend_Call) Return ¶
func (_c *MockInterceptorWithReady_DoAppend_Call) Return(_a0 message.MessageID, _a1 error) *MockInterceptorWithReady_DoAppend_Call
func (*MockInterceptorWithReady_DoAppend_Call) Run ¶
func (_c *MockInterceptorWithReady_DoAppend_Call) Run(run func(ctx context.Context, msg message.MutableMessage, append func(context.Context, message.MutableMessage) (message.MessageID, error))) *MockInterceptorWithReady_DoAppend_Call
func (*MockInterceptorWithReady_DoAppend_Call) RunAndReturn ¶
func (_c *MockInterceptorWithReady_DoAppend_Call) RunAndReturn(run func(context.Context, message.MutableMessage, func(context.Context, message.MutableMessage) (message.MessageID, error)) (message.MessageID, error)) *MockInterceptorWithReady_DoAppend_Call
type MockInterceptorWithReady_Expecter ¶
type MockInterceptorWithReady_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterceptorWithReady_Expecter) Close ¶
func (_e *MockInterceptorWithReady_Expecter) Close() *MockInterceptorWithReady_Close_Call
Close is a helper method to define mock.On call
func (*MockInterceptorWithReady_Expecter) DoAppend ¶
func (_e *MockInterceptorWithReady_Expecter) DoAppend(ctx interface{}, msg interface{}, append interface{}) *MockInterceptorWithReady_DoAppend_Call
DoAppend is a helper method to define mock.On call
- ctx context.Context
- msg message.MutableMessage
- append func(context.Context , message.MutableMessage)(message.MessageID , error)
func (*MockInterceptorWithReady_Expecter) Ready ¶
func (_e *MockInterceptorWithReady_Expecter) Ready() *MockInterceptorWithReady_Ready_Call
Ready is a helper method to define mock.On call
type MockInterceptorWithReady_Ready_Call ¶
MockInterceptorWithReady_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockInterceptorWithReady_Ready_Call) Return ¶
func (_c *MockInterceptorWithReady_Ready_Call) Return(_a0 <-chan struct{}) *MockInterceptorWithReady_Ready_Call
func (*MockInterceptorWithReady_Ready_Call) Run ¶
func (_c *MockInterceptorWithReady_Ready_Call) Run(run func()) *MockInterceptorWithReady_Ready_Call
func (*MockInterceptorWithReady_Ready_Call) RunAndReturn ¶
func (_c *MockInterceptorWithReady_Ready_Call) RunAndReturn(run func() <-chan struct{}) *MockInterceptorWithReady_Ready_Call
type MockInterceptor_Close_Call ¶
MockInterceptor_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockInterceptor_Close_Call) Return ¶
func (_c *MockInterceptor_Close_Call) Return() *MockInterceptor_Close_Call
func (*MockInterceptor_Close_Call) Run ¶
func (_c *MockInterceptor_Close_Call) Run(run func()) *MockInterceptor_Close_Call
func (*MockInterceptor_Close_Call) RunAndReturn ¶
func (_c *MockInterceptor_Close_Call) RunAndReturn(run func()) *MockInterceptor_Close_Call
type MockInterceptor_DoAppend_Call ¶
MockInterceptor_DoAppend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoAppend'
func (*MockInterceptor_DoAppend_Call) Return ¶
func (_c *MockInterceptor_DoAppend_Call) Return(_a0 message.MessageID, _a1 error) *MockInterceptor_DoAppend_Call
func (*MockInterceptor_DoAppend_Call) Run ¶
func (_c *MockInterceptor_DoAppend_Call) Run(run func(ctx context.Context, msg message.MutableMessage, append func(context.Context, message.MutableMessage) (message.MessageID, error))) *MockInterceptor_DoAppend_Call
func (*MockInterceptor_DoAppend_Call) RunAndReturn ¶
func (_c *MockInterceptor_DoAppend_Call) RunAndReturn(run func(context.Context, message.MutableMessage, func(context.Context, message.MutableMessage) (message.MessageID, error)) (message.MessageID, error)) *MockInterceptor_DoAppend_Call
type MockInterceptor_Expecter ¶
type MockInterceptor_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterceptor_Expecter) Close ¶
func (_e *MockInterceptor_Expecter) Close() *MockInterceptor_Close_Call
Close is a helper method to define mock.On call
func (*MockInterceptor_Expecter) DoAppend ¶
func (_e *MockInterceptor_Expecter) DoAppend(ctx interface{}, msg interface{}, append interface{}) *MockInterceptor_DoAppend_Call
DoAppend is a helper method to define mock.On call
- ctx context.Context
- msg message.MutableMessage
- append func(context.Context , message.MutableMessage)(message.MessageID , error)