Documentation ¶
Index ¶
- type MockWALAccesser
- func (_m *MockWALAccesser) AppendMessages(ctx context.Context, msgs ...message.MutableMessage) streaming.AppendResponses
- func (_m *MockWALAccesser) AppendMessagesWithOption(ctx context.Context, opts streaming.AppendOption, ...) streaming.AppendResponses
- func (_m *MockWALAccesser) EXPECT() *MockWALAccesser_Expecter
- func (_m *MockWALAccesser) RawAppend(ctx context.Context, msgs message.MutableMessage, ...) (*types.AppendResult, error)
- func (_m *MockWALAccesser) Read(ctx context.Context, opts streaming.ReadOption) streaming.Scanner
- func (_m *MockWALAccesser) Txn(ctx context.Context, opts streaming.TxnOption) (streaming.Txn, error)
- type MockWALAccesser_AppendMessagesWithOption_Call
- func (_c *MockWALAccesser_AppendMessagesWithOption_Call) Return(_a0 streaming.AppendResponses) *MockWALAccesser_AppendMessagesWithOption_Call
- func (_c *MockWALAccesser_AppendMessagesWithOption_Call) Run(run func(ctx context.Context, opts streaming.AppendOption, ...)) *MockWALAccesser_AppendMessagesWithOption_Call
- func (_c *MockWALAccesser_AppendMessagesWithOption_Call) RunAndReturn(...) *MockWALAccesser_AppendMessagesWithOption_Call
- type MockWALAccesser_AppendMessages_Call
- func (_c *MockWALAccesser_AppendMessages_Call) Return(_a0 streaming.AppendResponses) *MockWALAccesser_AppendMessages_Call
- func (_c *MockWALAccesser_AppendMessages_Call) Run(run func(ctx context.Context, msgs ...message.MutableMessage)) *MockWALAccesser_AppendMessages_Call
- func (_c *MockWALAccesser_AppendMessages_Call) RunAndReturn(run func(context.Context, ...message.MutableMessage) streaming.AppendResponses) *MockWALAccesser_AppendMessages_Call
- type MockWALAccesser_Expecter
- func (_e *MockWALAccesser_Expecter) AppendMessages(ctx interface{}, msgs ...interface{}) *MockWALAccesser_AppendMessages_Call
- func (_e *MockWALAccesser_Expecter) AppendMessagesWithOption(ctx interface{}, opts interface{}, msgs ...interface{}) *MockWALAccesser_AppendMessagesWithOption_Call
- func (_e *MockWALAccesser_Expecter) RawAppend(ctx interface{}, msgs interface{}, opts ...interface{}) *MockWALAccesser_RawAppend_Call
- func (_e *MockWALAccesser_Expecter) Read(ctx interface{}, opts interface{}) *MockWALAccesser_Read_Call
- func (_e *MockWALAccesser_Expecter) Txn(ctx interface{}, opts interface{}) *MockWALAccesser_Txn_Call
- type MockWALAccesser_RawAppend_Call
- func (_c *MockWALAccesser_RawAppend_Call) Return(_a0 *types.AppendResult, _a1 error) *MockWALAccesser_RawAppend_Call
- func (_c *MockWALAccesser_RawAppend_Call) Run(run func(ctx context.Context, msgs message.MutableMessage, ...)) *MockWALAccesser_RawAppend_Call
- func (_c *MockWALAccesser_RawAppend_Call) RunAndReturn(...) *MockWALAccesser_RawAppend_Call
- type MockWALAccesser_Read_Call
- func (_c *MockWALAccesser_Read_Call) Return(_a0 streaming.Scanner) *MockWALAccesser_Read_Call
- func (_c *MockWALAccesser_Read_Call) Run(run func(ctx context.Context, opts streaming.ReadOption)) *MockWALAccesser_Read_Call
- func (_c *MockWALAccesser_Read_Call) RunAndReturn(run func(context.Context, streaming.ReadOption) streaming.Scanner) *MockWALAccesser_Read_Call
- type MockWALAccesser_Txn_Call
- func (_c *MockWALAccesser_Txn_Call) Return(_a0 streaming.Txn, _a1 error) *MockWALAccesser_Txn_Call
- func (_c *MockWALAccesser_Txn_Call) Run(run func(ctx context.Context, opts streaming.TxnOption)) *MockWALAccesser_Txn_Call
- func (_c *MockWALAccesser_Txn_Call) RunAndReturn(run func(context.Context, streaming.TxnOption) (streaming.Txn, error)) *MockWALAccesser_Txn_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWALAccesser ¶
MockWALAccesser is an autogenerated mock type for the WALAccesser type
func NewMockWALAccesser ¶
func NewMockWALAccesser(t interface { mock.TestingT Cleanup(func()) }) *MockWALAccesser
NewMockWALAccesser creates a new instance of MockWALAccesser. 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 (*MockWALAccesser) AppendMessages ¶
func (_m *MockWALAccesser) AppendMessages(ctx context.Context, msgs ...message.MutableMessage) streaming.AppendResponses
AppendMessages provides a mock function with given fields: ctx, msgs
func (*MockWALAccesser) AppendMessagesWithOption ¶
func (_m *MockWALAccesser) AppendMessagesWithOption(ctx context.Context, opts streaming.AppendOption, msgs ...message.MutableMessage) streaming.AppendResponses
AppendMessagesWithOption provides a mock function with given fields: ctx, opts, msgs
func (*MockWALAccesser) EXPECT ¶
func (_m *MockWALAccesser) EXPECT() *MockWALAccesser_Expecter
func (*MockWALAccesser) RawAppend ¶
func (_m *MockWALAccesser) RawAppend(ctx context.Context, msgs message.MutableMessage, opts ...streaming.AppendOption) (*types.AppendResult, error)
RawAppend provides a mock function with given fields: ctx, msgs, opts
func (*MockWALAccesser) Read ¶
func (_m *MockWALAccesser) Read(ctx context.Context, opts streaming.ReadOption) streaming.Scanner
Read provides a mock function with given fields: ctx, opts
type MockWALAccesser_AppendMessagesWithOption_Call ¶
MockWALAccesser_AppendMessagesWithOption_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AppendMessagesWithOption'
func (*MockWALAccesser_AppendMessagesWithOption_Call) Run ¶
func (_c *MockWALAccesser_AppendMessagesWithOption_Call) Run(run func(ctx context.Context, opts streaming.AppendOption, msgs ...message.MutableMessage)) *MockWALAccesser_AppendMessagesWithOption_Call
func (*MockWALAccesser_AppendMessagesWithOption_Call) RunAndReturn ¶
func (_c *MockWALAccesser_AppendMessagesWithOption_Call) RunAndReturn(run func(context.Context, streaming.AppendOption, ...message.MutableMessage) streaming.AppendResponses) *MockWALAccesser_AppendMessagesWithOption_Call
type MockWALAccesser_AppendMessages_Call ¶
MockWALAccesser_AppendMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AppendMessages'
func (*MockWALAccesser_AppendMessages_Call) Return ¶
func (_c *MockWALAccesser_AppendMessages_Call) Return(_a0 streaming.AppendResponses) *MockWALAccesser_AppendMessages_Call
func (*MockWALAccesser_AppendMessages_Call) Run ¶
func (_c *MockWALAccesser_AppendMessages_Call) Run(run func(ctx context.Context, msgs ...message.MutableMessage)) *MockWALAccesser_AppendMessages_Call
func (*MockWALAccesser_AppendMessages_Call) RunAndReturn ¶
func (_c *MockWALAccesser_AppendMessages_Call) RunAndReturn(run func(context.Context, ...message.MutableMessage) streaming.AppendResponses) *MockWALAccesser_AppendMessages_Call
type MockWALAccesser_Expecter ¶
type MockWALAccesser_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWALAccesser_Expecter) AppendMessages ¶
func (_e *MockWALAccesser_Expecter) AppendMessages(ctx interface{}, msgs ...interface{}) *MockWALAccesser_AppendMessages_Call
AppendMessages is a helper method to define mock.On call
- ctx context.Context
- msgs ...message.MutableMessage
func (*MockWALAccesser_Expecter) AppendMessagesWithOption ¶
func (_e *MockWALAccesser_Expecter) AppendMessagesWithOption(ctx interface{}, opts interface{}, msgs ...interface{}) *MockWALAccesser_AppendMessagesWithOption_Call
AppendMessagesWithOption is a helper method to define mock.On call
- ctx context.Context
- opts streaming.AppendOption
- msgs ...message.MutableMessage
func (*MockWALAccesser_Expecter) RawAppend ¶
func (_e *MockWALAccesser_Expecter) RawAppend(ctx interface{}, msgs interface{}, opts ...interface{}) *MockWALAccesser_RawAppend_Call
RawAppend is a helper method to define mock.On call
- ctx context.Context
- msgs message.MutableMessage
- opts ...streaming.AppendOption
func (*MockWALAccesser_Expecter) Read ¶
func (_e *MockWALAccesser_Expecter) Read(ctx interface{}, opts interface{}) *MockWALAccesser_Read_Call
Read is a helper method to define mock.On call
- ctx context.Context
- opts streaming.ReadOption
func (*MockWALAccesser_Expecter) Txn ¶
func (_e *MockWALAccesser_Expecter) Txn(ctx interface{}, opts interface{}) *MockWALAccesser_Txn_Call
Txn is a helper method to define mock.On call
- ctx context.Context
- opts streaming.TxnOption
type MockWALAccesser_RawAppend_Call ¶
MockWALAccesser_RawAppend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RawAppend'
func (*MockWALAccesser_RawAppend_Call) Return ¶
func (_c *MockWALAccesser_RawAppend_Call) Return(_a0 *types.AppendResult, _a1 error) *MockWALAccesser_RawAppend_Call
func (*MockWALAccesser_RawAppend_Call) Run ¶
func (_c *MockWALAccesser_RawAppend_Call) Run(run func(ctx context.Context, msgs message.MutableMessage, opts ...streaming.AppendOption)) *MockWALAccesser_RawAppend_Call
func (*MockWALAccesser_RawAppend_Call) RunAndReturn ¶
func (_c *MockWALAccesser_RawAppend_Call) RunAndReturn(run func(context.Context, message.MutableMessage, ...streaming.AppendOption) (*types.AppendResult, error)) *MockWALAccesser_RawAppend_Call
type MockWALAccesser_Read_Call ¶
MockWALAccesser_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*MockWALAccesser_Read_Call) Return ¶
func (_c *MockWALAccesser_Read_Call) Return(_a0 streaming.Scanner) *MockWALAccesser_Read_Call
func (*MockWALAccesser_Read_Call) Run ¶
func (_c *MockWALAccesser_Read_Call) Run(run func(ctx context.Context, opts streaming.ReadOption)) *MockWALAccesser_Read_Call
func (*MockWALAccesser_Read_Call) RunAndReturn ¶
func (_c *MockWALAccesser_Read_Call) RunAndReturn(run func(context.Context, streaming.ReadOption) streaming.Scanner) *MockWALAccesser_Read_Call
type MockWALAccesser_Txn_Call ¶
MockWALAccesser_Txn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Txn'
func (*MockWALAccesser_Txn_Call) Return ¶
func (_c *MockWALAccesser_Txn_Call) Return(_a0 streaming.Txn, _a1 error) *MockWALAccesser_Txn_Call
func (*MockWALAccesser_Txn_Call) Run ¶
func (_c *MockWALAccesser_Txn_Call) Run(run func(ctx context.Context, opts streaming.TxnOption)) *MockWALAccesser_Txn_Call
func (*MockWALAccesser_Txn_Call) RunAndReturn ¶
func (_c *MockWALAccesser_Txn_Call) RunAndReturn(run func(context.Context, streaming.TxnOption) (streaming.Txn, error)) *MockWALAccesser_Txn_Call