Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockSchedulerServer
- func (m *MockSchedulerServer) EXPECT() *MockSchedulerServerMockRecorder
- func (m *MockSchedulerServer) LeaveTask(arg0 context.Context, arg1 *scheduler.PeerTarget) error
- func (m *MockSchedulerServer) RegisterPeerTask(arg0 context.Context, arg1 *scheduler.PeerTaskRequest) (*scheduler.RegisterResult, error)
- func (m *MockSchedulerServer) ReportPeerResult(arg0 context.Context, arg1 *scheduler.PeerResult) error
- func (m *MockSchedulerServer) ReportPieceResult(arg0 scheduler.Scheduler_ReportPieceResultServer) error
- type MockSchedulerServerMockRecorder
- func (mr *MockSchedulerServerMockRecorder) LeaveTask(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSchedulerServerMockRecorder) RegisterPeerTask(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSchedulerServerMockRecorder) ReportPeerResult(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSchedulerServerMockRecorder) ReportPieceResult(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSchedulerServer ¶
type MockSchedulerServer struct {
// contains filtered or unexported fields
}
MockSchedulerServer is a mock of SchedulerServer interface.
func NewMockSchedulerServer ¶
func NewMockSchedulerServer(ctrl *gomock.Controller) *MockSchedulerServer
NewMockSchedulerServer creates a new mock instance.
func (*MockSchedulerServer) EXPECT ¶
func (m *MockSchedulerServer) EXPECT() *MockSchedulerServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSchedulerServer) LeaveTask ¶
func (m *MockSchedulerServer) LeaveTask(arg0 context.Context, arg1 *scheduler.PeerTarget) error
LeaveTask mocks base method.
func (*MockSchedulerServer) RegisterPeerTask ¶
func (m *MockSchedulerServer) RegisterPeerTask(arg0 context.Context, arg1 *scheduler.PeerTaskRequest) (*scheduler.RegisterResult, error)
RegisterPeerTask mocks base method.
func (*MockSchedulerServer) ReportPeerResult ¶
func (m *MockSchedulerServer) ReportPeerResult(arg0 context.Context, arg1 *scheduler.PeerResult) error
ReportPeerResult mocks base method.
func (*MockSchedulerServer) ReportPieceResult ¶
func (m *MockSchedulerServer) ReportPieceResult(arg0 scheduler.Scheduler_ReportPieceResultServer) error
ReportPieceResult mocks base method.
type MockSchedulerServerMockRecorder ¶
type MockSchedulerServerMockRecorder struct {
// contains filtered or unexported fields
}
MockSchedulerServerMockRecorder is the mock recorder for MockSchedulerServer.
func (*MockSchedulerServerMockRecorder) LeaveTask ¶
func (mr *MockSchedulerServerMockRecorder) LeaveTask(arg0, arg1 interface{}) *gomock.Call
LeaveTask indicates an expected call of LeaveTask.
func (*MockSchedulerServerMockRecorder) RegisterPeerTask ¶
func (mr *MockSchedulerServerMockRecorder) RegisterPeerTask(arg0, arg1 interface{}) *gomock.Call
RegisterPeerTask indicates an expected call of RegisterPeerTask.
func (*MockSchedulerServerMockRecorder) ReportPeerResult ¶
func (mr *MockSchedulerServerMockRecorder) ReportPeerResult(arg0, arg1 interface{}) *gomock.Call
ReportPeerResult indicates an expected call of ReportPeerResult.
func (*MockSchedulerServerMockRecorder) ReportPieceResult ¶
func (mr *MockSchedulerServerMockRecorder) ReportPieceResult(arg0 interface{}) *gomock.Call
ReportPieceResult indicates an expected call of ReportPieceResult.