Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/anyproto/any-sync/consensus/consensusclient (interfaces: Service)
Generated by this command:
mockgen -destination mock_consensusclient/mock_consensusclient.go github.com/anyproto/any-sync/consensus/consensusclient Service
Package mock_consensusclient is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) AddLog(arg0 context.Context, arg1 *consensusproto.RawRecordWithId) error
- func (m *MockService) AddRecord(arg0 context.Context, arg1 string, arg2 *consensusproto.RawRecord) (*consensusproto.RawRecordWithId, error)
- func (m *MockService) Close(arg0 context.Context) error
- func (m *MockService) DeleteLog(arg0 context.Context, arg1 string) error
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) Init(arg0 *app.App) error
- func (m *MockService) Name() string
- func (m *MockService) Run(arg0 context.Context) error
- func (m *MockService) UnWatch(arg0 string) error
- func (m *MockService) Watch(arg0 string, arg1 consensusclient.Watcher) error
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) AddLog(arg0, arg1 any) *gomock.Call
- func (mr *MockServiceMockRecorder) AddRecord(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Close(arg0 any) *gomock.Call
- func (mr *MockServiceMockRecorder) DeleteLog(arg0, arg1 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Init(arg0 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Name() *gomock.Call
- func (mr *MockServiceMockRecorder) Run(arg0 any) *gomock.Call
- func (mr *MockServiceMockRecorder) UnWatch(arg0 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Watch(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) AddLog ¶
func (m *MockService) AddLog(arg0 context.Context, arg1 *consensusproto.RawRecordWithId) error
AddLog mocks base method.
func (*MockService) AddRecord ¶
func (m *MockService) AddRecord(arg0 context.Context, arg1 string, arg2 *consensusproto.RawRecord) (*consensusproto.RawRecordWithId, error)
AddRecord mocks base method.
func (*MockService) Close ¶
func (m *MockService) Close(arg0 context.Context) error
Close mocks base method.
func (*MockService) DeleteLog ¶ added in v0.3.0
func (m *MockService) DeleteLog(arg0 context.Context, arg1 string) error
DeleteLog mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) Run ¶
func (m *MockService) Run(arg0 context.Context) error
Run mocks base method.
func (*MockService) UnWatch ¶
func (m *MockService) UnWatch(arg0 string) error
UnWatch mocks base method.
func (*MockService) Watch ¶
func (m *MockService) Watch(arg0 string, arg1 consensusclient.Watcher) error
Watch mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) AddLog ¶
func (mr *MockServiceMockRecorder) AddLog(arg0, arg1 any) *gomock.Call
AddLog indicates an expected call of AddLog.
func (*MockServiceMockRecorder) AddRecord ¶
func (mr *MockServiceMockRecorder) AddRecord(arg0, arg1, arg2 any) *gomock.Call
AddRecord indicates an expected call of AddRecord.
func (*MockServiceMockRecorder) Close ¶
func (mr *MockServiceMockRecorder) Close(arg0 any) *gomock.Call
Close indicates an expected call of Close.
func (*MockServiceMockRecorder) DeleteLog ¶ added in v0.3.0
func (mr *MockServiceMockRecorder) DeleteLog(arg0, arg1 any) *gomock.Call
DeleteLog indicates an expected call of DeleteLog.
func (*MockServiceMockRecorder) Init ¶
func (mr *MockServiceMockRecorder) Init(arg0 any) *gomock.Call
Init indicates an expected call of Init.
func (*MockServiceMockRecorder) Name ¶
func (mr *MockServiceMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockServiceMockRecorder) Run ¶
func (mr *MockServiceMockRecorder) Run(arg0 any) *gomock.Call
Run indicates an expected call of Run.