Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ../dfdaemon_grpc.pb.go
Generated by this command:
mockgen -destination dfdaemon_mock.go -source ../dfdaemon_grpc.pb.go -package mocks
Package mocks is a generated GoMock package.
Index ¶
- type MockDaemonClient
- func (m *MockDaemonClient) CheckHealth(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockDaemonClient) DeleteTask(ctx context.Context, in *dfdaemon.DeleteTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockDaemonClient) Download(ctx context.Context, in *dfdaemon.DownRequest, opts ...grpc.CallOption) (dfdaemon.Daemon_DownloadClient, error)
- func (m *MockDaemonClient) EXPECT() *MockDaemonClientMockRecorder
- func (m *MockDaemonClient) ExportTask(ctx context.Context, in *dfdaemon.ExportTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockDaemonClient) GetPieceTasks(ctx context.Context, in *common.PieceTaskRequest, opts ...grpc.CallOption) (*common.PiecePacket, error)
- func (m *MockDaemonClient) ImportTask(ctx context.Context, in *dfdaemon.ImportTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockDaemonClient) LeaveHost(ctx context.Context, in *dfdaemon.LeaveHostRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockDaemonClient) StatTask(ctx context.Context, in *dfdaemon.StatTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockDaemonClient) SyncPieceTasks(ctx context.Context, opts ...grpc.CallOption) (dfdaemon.Daemon_SyncPieceTasksClient, error)
- type MockDaemonClientMockRecorder
- func (mr *MockDaemonClientMockRecorder) CheckHealth(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) DeleteTask(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) Download(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) ExportTask(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) GetPieceTasks(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) ImportTask(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) LeaveHost(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) StatTask(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) SyncPieceTasks(ctx any, opts ...any) *gomock.Call
- type MockDaemonServer
- func (m *MockDaemonServer) CheckHealth(arg0 context.Context, arg1 *emptypb.Empty) (*emptypb.Empty, error)
- func (m *MockDaemonServer) DeleteTask(arg0 context.Context, arg1 *dfdaemon.DeleteTaskRequest) (*emptypb.Empty, error)
- func (m *MockDaemonServer) Download(arg0 *dfdaemon.DownRequest, arg1 dfdaemon.Daemon_DownloadServer) error
- func (m *MockDaemonServer) EXPECT() *MockDaemonServerMockRecorder
- func (m *MockDaemonServer) ExportTask(arg0 context.Context, arg1 *dfdaemon.ExportTaskRequest) (*emptypb.Empty, error)
- func (m *MockDaemonServer) GetPieceTasks(arg0 context.Context, arg1 *common.PieceTaskRequest) (*common.PiecePacket, error)
- func (m *MockDaemonServer) ImportTask(arg0 context.Context, arg1 *dfdaemon.ImportTaskRequest) (*emptypb.Empty, error)
- func (m *MockDaemonServer) LeaveHost(arg0 context.Context, arg1 *dfdaemon.LeaveHostRequest) (*emptypb.Empty, error)
- func (m *MockDaemonServer) StatTask(arg0 context.Context, arg1 *dfdaemon.StatTaskRequest) (*emptypb.Empty, error)
- func (m *MockDaemonServer) SyncPieceTasks(arg0 dfdaemon.Daemon_SyncPieceTasksServer) error
- type MockDaemonServerMockRecorder
- func (mr *MockDaemonServerMockRecorder) CheckHealth(arg0, arg1 any) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) DeleteTask(arg0, arg1 any) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) Download(arg0, arg1 any) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) ExportTask(arg0, arg1 any) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) GetPieceTasks(arg0, arg1 any) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) ImportTask(arg0, arg1 any) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) LeaveHost(arg0, arg1 any) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) StatTask(arg0, arg1 any) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) SyncPieceTasks(arg0 any) *gomock.Call
- type MockDaemon_DownloadClient
- func (m *MockDaemon_DownloadClient) CloseSend() error
- func (m *MockDaemon_DownloadClient) Context() context.Context
- func (m *MockDaemon_DownloadClient) EXPECT() *MockDaemon_DownloadClientMockRecorder
- func (m *MockDaemon_DownloadClient) Header() (metadata.MD, error)
- func (m *MockDaemon_DownloadClient) Recv() (*dfdaemon.DownResult, error)
- func (m_2 *MockDaemon_DownloadClient) RecvMsg(m any) error
- func (m_2 *MockDaemon_DownloadClient) SendMsg(m any) error
- func (m *MockDaemon_DownloadClient) Trailer() metadata.MD
- type MockDaemon_DownloadClientMockRecorder
- func (mr *MockDaemon_DownloadClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) Context() *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) Header() *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) Recv() *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockDaemon_DownloadClientMockRecorder) Trailer() *gomock.Call
- type MockDaemon_DownloadServer
- func (m *MockDaemon_DownloadServer) Context() context.Context
- func (m *MockDaemon_DownloadServer) EXPECT() *MockDaemon_DownloadServerMockRecorder
- func (m_2 *MockDaemon_DownloadServer) RecvMsg(m any) error
- func (m *MockDaemon_DownloadServer) Send(arg0 *dfdaemon.DownResult) error
- func (m *MockDaemon_DownloadServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockDaemon_DownloadServer) SendMsg(m any) error
- func (m *MockDaemon_DownloadServer) SetHeader(arg0 metadata.MD) error
- func (m *MockDaemon_DownloadServer) SetTrailer(arg0 metadata.MD)
- type MockDaemon_DownloadServerMockRecorder
- func (mr *MockDaemon_DownloadServerMockRecorder) Context() *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) Send(arg0 any) *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) SendHeader(arg0 any) *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) SetHeader(arg0 any) *gomock.Call
- func (mr *MockDaemon_DownloadServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
- type MockDaemon_SyncPieceTasksClient
- func (m *MockDaemon_SyncPieceTasksClient) CloseSend() error
- func (m *MockDaemon_SyncPieceTasksClient) Context() context.Context
- func (m *MockDaemon_SyncPieceTasksClient) EXPECT() *MockDaemon_SyncPieceTasksClientMockRecorder
- func (m *MockDaemon_SyncPieceTasksClient) Header() (metadata.MD, error)
- func (m *MockDaemon_SyncPieceTasksClient) Recv() (*common.PiecePacket, error)
- func (m_2 *MockDaemon_SyncPieceTasksClient) RecvMsg(m any) error
- func (m *MockDaemon_SyncPieceTasksClient) Send(arg0 *common.PieceTaskRequest) error
- func (m_2 *MockDaemon_SyncPieceTasksClient) SendMsg(m any) error
- func (m *MockDaemon_SyncPieceTasksClient) Trailer() metadata.MD
- type MockDaemon_SyncPieceTasksClientMockRecorder
- func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) Context() *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) Header() *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) Recv() *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) Send(arg0 any) *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) Trailer() *gomock.Call
- type MockDaemon_SyncPieceTasksServer
- func (m *MockDaemon_SyncPieceTasksServer) Context() context.Context
- func (m *MockDaemon_SyncPieceTasksServer) EXPECT() *MockDaemon_SyncPieceTasksServerMockRecorder
- func (m *MockDaemon_SyncPieceTasksServer) Recv() (*common.PieceTaskRequest, error)
- func (m_2 *MockDaemon_SyncPieceTasksServer) RecvMsg(m any) error
- func (m *MockDaemon_SyncPieceTasksServer) Send(arg0 *common.PiecePacket) error
- func (m *MockDaemon_SyncPieceTasksServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockDaemon_SyncPieceTasksServer) SendMsg(m any) error
- func (m *MockDaemon_SyncPieceTasksServer) SetHeader(arg0 metadata.MD) error
- func (m *MockDaemon_SyncPieceTasksServer) SetTrailer(arg0 metadata.MD)
- type MockDaemon_SyncPieceTasksServerMockRecorder
- func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) Context() *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) Recv() *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) Send(arg0 any) *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SendHeader(arg0 any) *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SetHeader(arg0 any) *gomock.Call
- func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
- type MockUnsafeDaemonServer
- type MockUnsafeDaemonServerMockRecorder
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, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
CheckHealth mocks base method.
func (*MockDaemonClient) DeleteTask ¶
func (m *MockDaemonClient) DeleteTask(ctx context.Context, in *dfdaemon.DeleteTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeleteTask mocks base method.
func (*MockDaemonClient) Download ¶
func (m *MockDaemonClient) Download(ctx context.Context, in *dfdaemon.DownRequest, opts ...grpc.CallOption) (dfdaemon.Daemon_DownloadClient, 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) ExportTask ¶
func (m *MockDaemonClient) ExportTask(ctx context.Context, in *dfdaemon.ExportTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
ExportTask mocks base method.
func (*MockDaemonClient) GetPieceTasks ¶
func (m *MockDaemonClient) GetPieceTasks(ctx context.Context, in *common.PieceTaskRequest, opts ...grpc.CallOption) (*common.PiecePacket, error)
GetPieceTasks mocks base method.
func (*MockDaemonClient) ImportTask ¶
func (m *MockDaemonClient) ImportTask(ctx context.Context, in *dfdaemon.ImportTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
ImportTask mocks base method.
func (*MockDaemonClient) LeaveHost ¶ added in v2.0.93
func (m *MockDaemonClient) LeaveHost(ctx context.Context, in *dfdaemon.LeaveHostRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
LeaveHost mocks base method.
func (*MockDaemonClient) StatTask ¶
func (m *MockDaemonClient) StatTask(ctx context.Context, in *dfdaemon.StatTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
StatTask mocks base method.
func (*MockDaemonClient) SyncPieceTasks ¶
func (m *MockDaemonClient) SyncPieceTasks(ctx context.Context, opts ...grpc.CallOption) (dfdaemon.Daemon_SyncPieceTasksClient, error)
SyncPieceTasks 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, in any, opts ...any) *gomock.Call
CheckHealth indicates an expected call of CheckHealth.
func (*MockDaemonClientMockRecorder) DeleteTask ¶
func (mr *MockDaemonClientMockRecorder) DeleteTask(ctx, in any, opts ...any) *gomock.Call
DeleteTask indicates an expected call of DeleteTask.
func (*MockDaemonClientMockRecorder) Download ¶
func (mr *MockDaemonClientMockRecorder) Download(ctx, in any, opts ...any) *gomock.Call
Download indicates an expected call of Download.
func (*MockDaemonClientMockRecorder) ExportTask ¶
func (mr *MockDaemonClientMockRecorder) ExportTask(ctx, in any, opts ...any) *gomock.Call
ExportTask indicates an expected call of ExportTask.
func (*MockDaemonClientMockRecorder) GetPieceTasks ¶
func (mr *MockDaemonClientMockRecorder) GetPieceTasks(ctx, in any, opts ...any) *gomock.Call
GetPieceTasks indicates an expected call of GetPieceTasks.
func (*MockDaemonClientMockRecorder) ImportTask ¶
func (mr *MockDaemonClientMockRecorder) ImportTask(ctx, in any, opts ...any) *gomock.Call
ImportTask indicates an expected call of ImportTask.
func (*MockDaemonClientMockRecorder) LeaveHost ¶ added in v2.0.93
func (mr *MockDaemonClientMockRecorder) LeaveHost(ctx, in any, opts ...any) *gomock.Call
LeaveHost indicates an expected call of LeaveHost.
func (*MockDaemonClientMockRecorder) StatTask ¶
func (mr *MockDaemonClientMockRecorder) StatTask(ctx, in any, opts ...any) *gomock.Call
StatTask indicates an expected call of StatTask.
func (*MockDaemonClientMockRecorder) SyncPieceTasks ¶
func (mr *MockDaemonClientMockRecorder) SyncPieceTasks(ctx any, opts ...any) *gomock.Call
SyncPieceTasks indicates an expected call of SyncPieceTasks.
type MockDaemonServer ¶
type MockDaemonServer struct {
// contains filtered or unexported fields
}
MockDaemonServer is a mock of DaemonServer interface.
func NewMockDaemonServer ¶
func NewMockDaemonServer(ctrl *gomock.Controller) *MockDaemonServer
NewMockDaemonServer creates a new mock instance.
func (*MockDaemonServer) CheckHealth ¶
func (m *MockDaemonServer) CheckHealth(arg0 context.Context, arg1 *emptypb.Empty) (*emptypb.Empty, error)
CheckHealth mocks base method.
func (*MockDaemonServer) DeleteTask ¶
func (m *MockDaemonServer) DeleteTask(arg0 context.Context, arg1 *dfdaemon.DeleteTaskRequest) (*emptypb.Empty, error)
DeleteTask mocks base method.
func (*MockDaemonServer) Download ¶
func (m *MockDaemonServer) Download(arg0 *dfdaemon.DownRequest, arg1 dfdaemon.Daemon_DownloadServer) error
Download mocks base method.
func (*MockDaemonServer) EXPECT ¶
func (m *MockDaemonServer) EXPECT() *MockDaemonServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDaemonServer) ExportTask ¶
func (m *MockDaemonServer) ExportTask(arg0 context.Context, arg1 *dfdaemon.ExportTaskRequest) (*emptypb.Empty, error)
ExportTask mocks base method.
func (*MockDaemonServer) GetPieceTasks ¶
func (m *MockDaemonServer) GetPieceTasks(arg0 context.Context, arg1 *common.PieceTaskRequest) (*common.PiecePacket, error)
GetPieceTasks mocks base method.
func (*MockDaemonServer) ImportTask ¶
func (m *MockDaemonServer) ImportTask(arg0 context.Context, arg1 *dfdaemon.ImportTaskRequest) (*emptypb.Empty, error)
ImportTask mocks base method.
func (*MockDaemonServer) LeaveHost ¶ added in v2.0.93
func (m *MockDaemonServer) LeaveHost(arg0 context.Context, arg1 *dfdaemon.LeaveHostRequest) (*emptypb.Empty, error)
LeaveHost mocks base method.
func (*MockDaemonServer) StatTask ¶
func (m *MockDaemonServer) StatTask(arg0 context.Context, arg1 *dfdaemon.StatTaskRequest) (*emptypb.Empty, error)
StatTask mocks base method.
func (*MockDaemonServer) SyncPieceTasks ¶
func (m *MockDaemonServer) SyncPieceTasks(arg0 dfdaemon.Daemon_SyncPieceTasksServer) error
SyncPieceTasks mocks base method.
type MockDaemonServerMockRecorder ¶
type MockDaemonServerMockRecorder struct {
// contains filtered or unexported fields
}
MockDaemonServerMockRecorder is the mock recorder for MockDaemonServer.
func (*MockDaemonServerMockRecorder) CheckHealth ¶
func (mr *MockDaemonServerMockRecorder) CheckHealth(arg0, arg1 any) *gomock.Call
CheckHealth indicates an expected call of CheckHealth.
func (*MockDaemonServerMockRecorder) DeleteTask ¶
func (mr *MockDaemonServerMockRecorder) DeleteTask(arg0, arg1 any) *gomock.Call
DeleteTask indicates an expected call of DeleteTask.
func (*MockDaemonServerMockRecorder) Download ¶
func (mr *MockDaemonServerMockRecorder) Download(arg0, arg1 any) *gomock.Call
Download indicates an expected call of Download.
func (*MockDaemonServerMockRecorder) ExportTask ¶
func (mr *MockDaemonServerMockRecorder) ExportTask(arg0, arg1 any) *gomock.Call
ExportTask indicates an expected call of ExportTask.
func (*MockDaemonServerMockRecorder) GetPieceTasks ¶
func (mr *MockDaemonServerMockRecorder) GetPieceTasks(arg0, arg1 any) *gomock.Call
GetPieceTasks indicates an expected call of GetPieceTasks.
func (*MockDaemonServerMockRecorder) ImportTask ¶
func (mr *MockDaemonServerMockRecorder) ImportTask(arg0, arg1 any) *gomock.Call
ImportTask indicates an expected call of ImportTask.
func (*MockDaemonServerMockRecorder) LeaveHost ¶ added in v2.0.93
func (mr *MockDaemonServerMockRecorder) LeaveHost(arg0, arg1 any) *gomock.Call
LeaveHost indicates an expected call of LeaveHost.
func (*MockDaemonServerMockRecorder) StatTask ¶
func (mr *MockDaemonServerMockRecorder) StatTask(arg0, arg1 any) *gomock.Call
StatTask indicates an expected call of StatTask.
func (*MockDaemonServerMockRecorder) SyncPieceTasks ¶
func (mr *MockDaemonServerMockRecorder) SyncPieceTasks(arg0 any) *gomock.Call
SyncPieceTasks indicates an expected call of SyncPieceTasks.
type MockDaemon_DownloadClient ¶
type MockDaemon_DownloadClient struct {
// contains filtered or unexported fields
}
MockDaemon_DownloadClient is a mock of Daemon_DownloadClient interface.
func NewMockDaemon_DownloadClient ¶
func NewMockDaemon_DownloadClient(ctrl *gomock.Controller) *MockDaemon_DownloadClient
NewMockDaemon_DownloadClient creates a new mock instance.
func (*MockDaemon_DownloadClient) CloseSend ¶
func (m *MockDaemon_DownloadClient) CloseSend() error
CloseSend mocks base method.
func (*MockDaemon_DownloadClient) Context ¶
func (m *MockDaemon_DownloadClient) Context() context.Context
Context mocks base method.
func (*MockDaemon_DownloadClient) EXPECT ¶
func (m *MockDaemon_DownloadClient) EXPECT() *MockDaemon_DownloadClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDaemon_DownloadClient) Header ¶
func (m *MockDaemon_DownloadClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockDaemon_DownloadClient) Recv ¶
func (m *MockDaemon_DownloadClient) Recv() (*dfdaemon.DownResult, error)
Recv mocks base method.
func (*MockDaemon_DownloadClient) RecvMsg ¶
func (m_2 *MockDaemon_DownloadClient) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockDaemon_DownloadClient) SendMsg ¶
func (m_2 *MockDaemon_DownloadClient) SendMsg(m any) error
SendMsg mocks base method.
func (*MockDaemon_DownloadClient) Trailer ¶
func (m *MockDaemon_DownloadClient) Trailer() metadata.MD
Trailer mocks base method.
type MockDaemon_DownloadClientMockRecorder ¶
type MockDaemon_DownloadClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDaemon_DownloadClientMockRecorder is the mock recorder for MockDaemon_DownloadClient.
func (*MockDaemon_DownloadClientMockRecorder) CloseSend ¶
func (mr *MockDaemon_DownloadClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockDaemon_DownloadClientMockRecorder) Context ¶
func (mr *MockDaemon_DownloadClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockDaemon_DownloadClientMockRecorder) Header ¶
func (mr *MockDaemon_DownloadClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockDaemon_DownloadClientMockRecorder) Recv ¶
func (mr *MockDaemon_DownloadClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockDaemon_DownloadClientMockRecorder) RecvMsg ¶
func (mr *MockDaemon_DownloadClientMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockDaemon_DownloadClientMockRecorder) SendMsg ¶
func (mr *MockDaemon_DownloadClientMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockDaemon_DownloadClientMockRecorder) Trailer ¶
func (mr *MockDaemon_DownloadClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockDaemon_DownloadServer ¶
type MockDaemon_DownloadServer struct {
// contains filtered or unexported fields
}
MockDaemon_DownloadServer is a mock of Daemon_DownloadServer interface.
func NewMockDaemon_DownloadServer ¶
func NewMockDaemon_DownloadServer(ctrl *gomock.Controller) *MockDaemon_DownloadServer
NewMockDaemon_DownloadServer creates a new mock instance.
func (*MockDaemon_DownloadServer) Context ¶
func (m *MockDaemon_DownloadServer) Context() context.Context
Context mocks base method.
func (*MockDaemon_DownloadServer) EXPECT ¶
func (m *MockDaemon_DownloadServer) EXPECT() *MockDaemon_DownloadServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDaemon_DownloadServer) RecvMsg ¶
func (m_2 *MockDaemon_DownloadServer) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockDaemon_DownloadServer) Send ¶
func (m *MockDaemon_DownloadServer) Send(arg0 *dfdaemon.DownResult) error
Send mocks base method.
func (*MockDaemon_DownloadServer) SendHeader ¶
func (m *MockDaemon_DownloadServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockDaemon_DownloadServer) SendMsg ¶
func (m_2 *MockDaemon_DownloadServer) SendMsg(m any) error
SendMsg mocks base method.
func (*MockDaemon_DownloadServer) SetHeader ¶
func (m *MockDaemon_DownloadServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockDaemon_DownloadServer) SetTrailer ¶
func (m *MockDaemon_DownloadServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockDaemon_DownloadServerMockRecorder ¶
type MockDaemon_DownloadServerMockRecorder struct {
// contains filtered or unexported fields
}
MockDaemon_DownloadServerMockRecorder is the mock recorder for MockDaemon_DownloadServer.
func (*MockDaemon_DownloadServerMockRecorder) Context ¶
func (mr *MockDaemon_DownloadServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockDaemon_DownloadServerMockRecorder) RecvMsg ¶
func (mr *MockDaemon_DownloadServerMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockDaemon_DownloadServerMockRecorder) Send ¶
func (mr *MockDaemon_DownloadServerMockRecorder) Send(arg0 any) *gomock.Call
Send indicates an expected call of Send.
func (*MockDaemon_DownloadServerMockRecorder) SendHeader ¶
func (mr *MockDaemon_DownloadServerMockRecorder) SendHeader(arg0 any) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockDaemon_DownloadServerMockRecorder) SendMsg ¶
func (mr *MockDaemon_DownloadServerMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockDaemon_DownloadServerMockRecorder) SetHeader ¶
func (mr *MockDaemon_DownloadServerMockRecorder) SetHeader(arg0 any) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockDaemon_DownloadServerMockRecorder) SetTrailer ¶
func (mr *MockDaemon_DownloadServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
type MockDaemon_SyncPieceTasksClient ¶
type MockDaemon_SyncPieceTasksClient struct {
// contains filtered or unexported fields
}
MockDaemon_SyncPieceTasksClient is a mock of Daemon_SyncPieceTasksClient interface.
func NewMockDaemon_SyncPieceTasksClient ¶
func NewMockDaemon_SyncPieceTasksClient(ctrl *gomock.Controller) *MockDaemon_SyncPieceTasksClient
NewMockDaemon_SyncPieceTasksClient creates a new mock instance.
func (*MockDaemon_SyncPieceTasksClient) CloseSend ¶
func (m *MockDaemon_SyncPieceTasksClient) CloseSend() error
CloseSend mocks base method.
func (*MockDaemon_SyncPieceTasksClient) Context ¶
func (m *MockDaemon_SyncPieceTasksClient) Context() context.Context
Context mocks base method.
func (*MockDaemon_SyncPieceTasksClient) EXPECT ¶
func (m *MockDaemon_SyncPieceTasksClient) EXPECT() *MockDaemon_SyncPieceTasksClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDaemon_SyncPieceTasksClient) Header ¶
func (m *MockDaemon_SyncPieceTasksClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockDaemon_SyncPieceTasksClient) Recv ¶
func (m *MockDaemon_SyncPieceTasksClient) Recv() (*common.PiecePacket, error)
Recv mocks base method.
func (*MockDaemon_SyncPieceTasksClient) RecvMsg ¶
func (m_2 *MockDaemon_SyncPieceTasksClient) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockDaemon_SyncPieceTasksClient) Send ¶
func (m *MockDaemon_SyncPieceTasksClient) Send(arg0 *common.PieceTaskRequest) error
Send mocks base method.
func (*MockDaemon_SyncPieceTasksClient) SendMsg ¶
func (m_2 *MockDaemon_SyncPieceTasksClient) SendMsg(m any) error
SendMsg mocks base method.
func (*MockDaemon_SyncPieceTasksClient) Trailer ¶
func (m *MockDaemon_SyncPieceTasksClient) Trailer() metadata.MD
Trailer mocks base method.
type MockDaemon_SyncPieceTasksClientMockRecorder ¶
type MockDaemon_SyncPieceTasksClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDaemon_SyncPieceTasksClientMockRecorder is the mock recorder for MockDaemon_SyncPieceTasksClient.
func (*MockDaemon_SyncPieceTasksClientMockRecorder) CloseSend ¶
func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockDaemon_SyncPieceTasksClientMockRecorder) Context ¶
func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockDaemon_SyncPieceTasksClientMockRecorder) Header ¶
func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockDaemon_SyncPieceTasksClientMockRecorder) Recv ¶
func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockDaemon_SyncPieceTasksClientMockRecorder) RecvMsg ¶
func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockDaemon_SyncPieceTasksClientMockRecorder) Send ¶
func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) Send(arg0 any) *gomock.Call
Send indicates an expected call of Send.
func (*MockDaemon_SyncPieceTasksClientMockRecorder) SendMsg ¶
func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockDaemon_SyncPieceTasksClientMockRecorder) Trailer ¶
func (mr *MockDaemon_SyncPieceTasksClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockDaemon_SyncPieceTasksServer ¶
type MockDaemon_SyncPieceTasksServer struct {
// contains filtered or unexported fields
}
MockDaemon_SyncPieceTasksServer is a mock of Daemon_SyncPieceTasksServer interface.
func NewMockDaemon_SyncPieceTasksServer ¶
func NewMockDaemon_SyncPieceTasksServer(ctrl *gomock.Controller) *MockDaemon_SyncPieceTasksServer
NewMockDaemon_SyncPieceTasksServer creates a new mock instance.
func (*MockDaemon_SyncPieceTasksServer) Context ¶
func (m *MockDaemon_SyncPieceTasksServer) Context() context.Context
Context mocks base method.
func (*MockDaemon_SyncPieceTasksServer) EXPECT ¶
func (m *MockDaemon_SyncPieceTasksServer) EXPECT() *MockDaemon_SyncPieceTasksServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDaemon_SyncPieceTasksServer) Recv ¶
func (m *MockDaemon_SyncPieceTasksServer) Recv() (*common.PieceTaskRequest, error)
Recv mocks base method.
func (*MockDaemon_SyncPieceTasksServer) RecvMsg ¶
func (m_2 *MockDaemon_SyncPieceTasksServer) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockDaemon_SyncPieceTasksServer) Send ¶
func (m *MockDaemon_SyncPieceTasksServer) Send(arg0 *common.PiecePacket) error
Send mocks base method.
func (*MockDaemon_SyncPieceTasksServer) SendHeader ¶
func (m *MockDaemon_SyncPieceTasksServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockDaemon_SyncPieceTasksServer) SendMsg ¶
func (m_2 *MockDaemon_SyncPieceTasksServer) SendMsg(m any) error
SendMsg mocks base method.
func (*MockDaemon_SyncPieceTasksServer) SetHeader ¶
func (m *MockDaemon_SyncPieceTasksServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockDaemon_SyncPieceTasksServer) SetTrailer ¶
func (m *MockDaemon_SyncPieceTasksServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockDaemon_SyncPieceTasksServerMockRecorder ¶
type MockDaemon_SyncPieceTasksServerMockRecorder struct {
// contains filtered or unexported fields
}
MockDaemon_SyncPieceTasksServerMockRecorder is the mock recorder for MockDaemon_SyncPieceTasksServer.
func (*MockDaemon_SyncPieceTasksServerMockRecorder) Context ¶
func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockDaemon_SyncPieceTasksServerMockRecorder) Recv ¶
func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockDaemon_SyncPieceTasksServerMockRecorder) RecvMsg ¶
func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockDaemon_SyncPieceTasksServerMockRecorder) Send ¶
func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) Send(arg0 any) *gomock.Call
Send indicates an expected call of Send.
func (*MockDaemon_SyncPieceTasksServerMockRecorder) SendHeader ¶
func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SendHeader(arg0 any) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockDaemon_SyncPieceTasksServerMockRecorder) SendMsg ¶
func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockDaemon_SyncPieceTasksServerMockRecorder) SetHeader ¶
func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SetHeader(arg0 any) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockDaemon_SyncPieceTasksServerMockRecorder) SetTrailer ¶
func (mr *MockDaemon_SyncPieceTasksServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
type MockUnsafeDaemonServer ¶
type MockUnsafeDaemonServer struct {
// contains filtered or unexported fields
}
MockUnsafeDaemonServer is a mock of UnsafeDaemonServer interface.
func NewMockUnsafeDaemonServer ¶
func NewMockUnsafeDaemonServer(ctrl *gomock.Controller) *MockUnsafeDaemonServer
NewMockUnsafeDaemonServer creates a new mock instance.
func (*MockUnsafeDaemonServer) EXPECT ¶
func (m *MockUnsafeDaemonServer) EXPECT() *MockUnsafeDaemonServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeDaemonServerMockRecorder ¶
type MockUnsafeDaemonServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeDaemonServerMockRecorder is the mock recorder for MockUnsafeDaemonServer.