Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockMinerManageAPI
- func (m *MockMinerManageAPI) CloseMining(arg0 context.Context, arg1 address.Address) error
- func (m *MockMinerManageAPI) EXPECT() *MockMinerManageAPIMockRecorder
- func (m *MockMinerManageAPI) Get(arg0 context.Context, arg1 address.Address) (*types.MinerInfo, error)
- func (m *MockMinerManageAPI) Has(arg0 context.Context, arg1 address.Address) bool
- func (m *MockMinerManageAPI) IsOpenMining(arg0 context.Context, arg1 address.Address) bool
- func (m *MockMinerManageAPI) List(arg0 context.Context) (map[address.Address]*types.MinerInfo, error)
- func (m *MockMinerManageAPI) OpenMining(arg0 context.Context, arg1 address.Address) (*types.MinerInfo, error)
- func (m *MockMinerManageAPI) Update(arg0 context.Context, arg1, arg2 int64) (map[address.Address]*types.MinerInfo, error)
- type MockMinerManageAPIMockRecorder
- func (mr *MockMinerManageAPIMockRecorder) CloseMining(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMinerManageAPIMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMinerManageAPIMockRecorder) Has(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMinerManageAPIMockRecorder) IsOpenMining(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMinerManageAPIMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockMinerManageAPIMockRecorder) OpenMining(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMinerManageAPIMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMinerManageAPI ¶
type MockMinerManageAPI struct {
// contains filtered or unexported fields
}
MockMinerManageAPI is a mock of MinerManageAPI interface.
func NewMockMinerManageAPI ¶
func NewMockMinerManageAPI(ctrl *gomock.Controller) *MockMinerManageAPI
NewMockMinerManageAPI creates a new mock instance.
func (*MockMinerManageAPI) CloseMining ¶
CloseMining mocks base method.
func (*MockMinerManageAPI) EXPECT ¶
func (m *MockMinerManageAPI) EXPECT() *MockMinerManageAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMinerManageAPI) Get ¶
func (m *MockMinerManageAPI) Get(arg0 context.Context, arg1 address.Address) (*types.MinerInfo, error)
Get mocks base method.
func (*MockMinerManageAPI) IsOpenMining ¶
IsOpenMining mocks base method.
func (*MockMinerManageAPI) List ¶
func (m *MockMinerManageAPI) List(arg0 context.Context) (map[address.Address]*types.MinerInfo, error)
List mocks base method.
func (*MockMinerManageAPI) OpenMining ¶
func (m *MockMinerManageAPI) OpenMining(arg0 context.Context, arg1 address.Address) (*types.MinerInfo, error)
OpenMining mocks base method.
type MockMinerManageAPIMockRecorder ¶
type MockMinerManageAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockMinerManageAPIMockRecorder is the mock recorder for MockMinerManageAPI.
func (*MockMinerManageAPIMockRecorder) CloseMining ¶
func (mr *MockMinerManageAPIMockRecorder) CloseMining(arg0, arg1 interface{}) *gomock.Call
CloseMining indicates an expected call of CloseMining.
func (*MockMinerManageAPIMockRecorder) Get ¶
func (mr *MockMinerManageAPIMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockMinerManageAPIMockRecorder) Has ¶
func (mr *MockMinerManageAPIMockRecorder) Has(arg0, arg1 interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockMinerManageAPIMockRecorder) IsOpenMining ¶
func (mr *MockMinerManageAPIMockRecorder) IsOpenMining(arg0, arg1 interface{}) *gomock.Call
IsOpenMining indicates an expected call of IsOpenMining.
func (*MockMinerManageAPIMockRecorder) List ¶
func (mr *MockMinerManageAPIMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockMinerManageAPIMockRecorder) OpenMining ¶
func (mr *MockMinerManageAPIMockRecorder) OpenMining(arg0, arg1 interface{}) *gomock.Call
OpenMining indicates an expected call of OpenMining.
func (*MockMinerManageAPIMockRecorder) Update ¶
func (mr *MockMinerManageAPIMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Update indicates an expected call of Update.