Documentation ¶
Overview ¶
Package mock_client is a generated GoMock package.
Package mock_client is a generated GoMock package.
Index ¶
- type MockPeerPacketStream
- type MockPeerPacketStreamMockRecorder
- type MockSchedulerClient
- func (m *MockSchedulerClient) Close() error
- func (m *MockSchedulerClient) EXPECT() *MockSchedulerClientMockRecorder
- func (m *MockSchedulerClient) LeaveTask(ctx context.Context, pt *scheduler.PeerTarget, opts ...grpc.CallOption) error
- func (m *MockSchedulerClient) RegisterPeerTask(ctx context.Context, ptr *scheduler.PeerTaskRequest, opts ...grpc.CallOption) (*scheduler.RegisterResult, error)
- func (m *MockSchedulerClient) ReportPeerResult(ctx context.Context, pr *scheduler.PeerResult, opts ...grpc.CallOption) error
- func (m *MockSchedulerClient) ReportPieceResult(ctx context.Context, taskId string, ptr *scheduler.PeerTaskRequest, ...) (client.PeerPacketStream, error)
- type MockSchedulerClientMockRecorder
- func (mr *MockSchedulerClientMockRecorder) Close() *gomock.Call
- func (mr *MockSchedulerClientMockRecorder) LeaveTask(ctx, pt interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockSchedulerClientMockRecorder) RegisterPeerTask(ctx, ptr interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockSchedulerClientMockRecorder) ReportPeerResult(ctx, pr interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockSchedulerClientMockRecorder) ReportPieceResult(ctx, taskId, ptr interface{}, opts ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPeerPacketStream ¶
type MockPeerPacketStream struct {
// contains filtered or unexported fields
}
MockPeerPacketStream is a mock of PeerPacketStream interface.
func NewMockPeerPacketStream ¶
func NewMockPeerPacketStream(ctrl *gomock.Controller) *MockPeerPacketStream
NewMockPeerPacketStream creates a new mock instance.
func (*MockPeerPacketStream) EXPECT ¶
func (m *MockPeerPacketStream) EXPECT() *MockPeerPacketStreamMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPeerPacketStream) Recv ¶
func (m *MockPeerPacketStream) Recv() (*scheduler.PeerPacket, error)
Recv mocks base method.
func (*MockPeerPacketStream) Send ¶
func (m *MockPeerPacketStream) Send(pr *scheduler.PieceResult) error
Send mocks base method.
type MockPeerPacketStreamMockRecorder ¶
type MockPeerPacketStreamMockRecorder struct {
// contains filtered or unexported fields
}
MockPeerPacketStreamMockRecorder is the mock recorder for MockPeerPacketStream.
func (*MockPeerPacketStreamMockRecorder) Recv ¶
func (mr *MockPeerPacketStreamMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockPeerPacketStreamMockRecorder) Send ¶
func (mr *MockPeerPacketStreamMockRecorder) Send(pr interface{}) *gomock.Call
Send indicates an expected call of Send.
type MockSchedulerClient ¶
type MockSchedulerClient struct {
// contains filtered or unexported fields
}
MockSchedulerClient is a mock of SchedulerClient interface.
func NewMockSchedulerClient ¶
func NewMockSchedulerClient(ctrl *gomock.Controller) *MockSchedulerClient
NewMockSchedulerClient creates a new mock instance.
func (*MockSchedulerClient) Close ¶
func (m *MockSchedulerClient) Close() error
Close mocks base method.
func (*MockSchedulerClient) EXPECT ¶
func (m *MockSchedulerClient) EXPECT() *MockSchedulerClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSchedulerClient) LeaveTask ¶
func (m *MockSchedulerClient) LeaveTask(ctx context.Context, pt *scheduler.PeerTarget, opts ...grpc.CallOption) error
LeaveTask mocks base method.
func (*MockSchedulerClient) RegisterPeerTask ¶
func (m *MockSchedulerClient) RegisterPeerTask(ctx context.Context, ptr *scheduler.PeerTaskRequest, opts ...grpc.CallOption) (*scheduler.RegisterResult, error)
RegisterPeerTask mocks base method.
func (*MockSchedulerClient) ReportPeerResult ¶
func (m *MockSchedulerClient) ReportPeerResult(ctx context.Context, pr *scheduler.PeerResult, opts ...grpc.CallOption) error
ReportPeerResult mocks base method.
func (*MockSchedulerClient) ReportPieceResult ¶
func (m *MockSchedulerClient) ReportPieceResult(ctx context.Context, taskId string, ptr *scheduler.PeerTaskRequest, opts ...grpc.CallOption) (client.PeerPacketStream, error)
ReportPieceResult mocks base method.
type MockSchedulerClientMockRecorder ¶
type MockSchedulerClientMockRecorder struct {
// contains filtered or unexported fields
}
MockSchedulerClientMockRecorder is the mock recorder for MockSchedulerClient.
func (*MockSchedulerClientMockRecorder) Close ¶
func (mr *MockSchedulerClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSchedulerClientMockRecorder) LeaveTask ¶
func (mr *MockSchedulerClientMockRecorder) LeaveTask(ctx, pt interface{}, opts ...interface{}) *gomock.Call
LeaveTask indicates an expected call of LeaveTask.
func (*MockSchedulerClientMockRecorder) RegisterPeerTask ¶
func (mr *MockSchedulerClientMockRecorder) RegisterPeerTask(ctx, ptr interface{}, opts ...interface{}) *gomock.Call
RegisterPeerTask indicates an expected call of RegisterPeerTask.
func (*MockSchedulerClientMockRecorder) ReportPeerResult ¶
func (mr *MockSchedulerClientMockRecorder) ReportPeerResult(ctx, pr interface{}, opts ...interface{}) *gomock.Call
ReportPeerResult indicates an expected call of ReportPeerResult.
func (*MockSchedulerClientMockRecorder) ReportPieceResult ¶
func (mr *MockSchedulerClientMockRecorder) ReportPieceResult(ctx, taskId, ptr interface{}, opts ...interface{}) *gomock.Call
ReportPieceResult indicates an expected call of ReportPieceResult.