Documentation ¶
Overview ¶
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) 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 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) AddRecord(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Close(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Init(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Name() *gomock.Call
- func (mr *MockServiceMockRecorder) Run(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) UnWatch(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Watch(arg0, arg1 interface{}) *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) 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 interface{}) *gomock.Call
AddLog indicates an expected call of AddLog.
func (*MockServiceMockRecorder) AddRecord ¶
func (mr *MockServiceMockRecorder) AddRecord(arg0, arg1, arg2 interface{}) *gomock.Call
AddRecord indicates an expected call of AddRecord.
func (*MockServiceMockRecorder) Close ¶
func (mr *MockServiceMockRecorder) Close(arg0 interface{}) *gomock.Call
Close indicates an expected call of Close.
func (*MockServiceMockRecorder) Init ¶
func (mr *MockServiceMockRecorder) Init(arg0 interface{}) *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 interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockServiceMockRecorder) UnWatch ¶
func (mr *MockServiceMockRecorder) UnWatch(arg0 interface{}) *gomock.Call
UnWatch indicates an expected call of UnWatch.
func (*MockServiceMockRecorder) Watch ¶
func (mr *MockServiceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call
Watch indicates an expected call of Watch.