Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDaemonClient
- func (m *MockDaemonClient) CheckHealth(ctx context.Context, target dfnet.NetAddr, opts ...grpc.CallOption) error
- func (m *MockDaemonClient) Close() error
- func (m *MockDaemonClient) Download(ctx context.Context, req *dfdaemon.DownRequest, opts ...grpc.CallOption) (*client.DownResultStream, error)
- func (m *MockDaemonClient) EXPECT() *MockDaemonClientMockRecorder
- func (m *MockDaemonClient) GetPieceTasks(ctx context.Context, addr dfnet.NetAddr, ptr *base.PieceTaskRequest, ...) (*base.PiecePacket, error)
- type MockDaemonClientMockRecorder
- func (mr *MockDaemonClientMockRecorder) CheckHealth(ctx, target interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) Close() *gomock.Call
- func (mr *MockDaemonClientMockRecorder) Download(ctx, req interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) GetPieceTasks(ctx, addr, ptr interface{}, opts ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDaemonClient ¶
type MockDaemonClient struct {
// contains filtered or unexported fields
}
MockDaemonClient is a mock of DaemonClient interface.
func NewMockDaemonClient ¶
func NewMockDaemonClient(ctrl *gomock.Controller) *MockDaemonClient
NewMockDaemonClient creates a new mock instance.
func (*MockDaemonClient) CheckHealth ¶
func (m *MockDaemonClient) CheckHealth(ctx context.Context, target dfnet.NetAddr, opts ...grpc.CallOption) error
CheckHealth mocks base method.
func (*MockDaemonClient) Download ¶
func (m *MockDaemonClient) Download(ctx context.Context, req *dfdaemon.DownRequest, opts ...grpc.CallOption) (*client.DownResultStream, error)
Download mocks base method.
func (*MockDaemonClient) EXPECT ¶
func (m *MockDaemonClient) EXPECT() *MockDaemonClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDaemonClient) GetPieceTasks ¶
func (m *MockDaemonClient) GetPieceTasks(ctx context.Context, addr dfnet.NetAddr, ptr *base.PieceTaskRequest, opts ...grpc.CallOption) (*base.PiecePacket, error)
GetPieceTasks mocks base method.
type MockDaemonClientMockRecorder ¶
type MockDaemonClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDaemonClientMockRecorder is the mock recorder for MockDaemonClient.
func (*MockDaemonClientMockRecorder) CheckHealth ¶
func (mr *MockDaemonClientMockRecorder) CheckHealth(ctx, target interface{}, opts ...interface{}) *gomock.Call
CheckHealth indicates an expected call of CheckHealth.
func (*MockDaemonClientMockRecorder) Close ¶
func (mr *MockDaemonClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDaemonClientMockRecorder) Download ¶
func (mr *MockDaemonClientMockRecorder) Download(ctx, req interface{}, opts ...interface{}) *gomock.Call
Download indicates an expected call of Download.
func (*MockDaemonClientMockRecorder) GetPieceTasks ¶
func (mr *MockDaemonClientMockRecorder) GetPieceTasks(ctx, addr, ptr interface{}, opts ...interface{}) *gomock.Call
GetPieceTasks indicates an expected call of GetPieceTasks.
Click to show internal directories.
Click to hide internal directories.