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 MockDfdaemonClient
- func (m *MockDfdaemonClient) DeleteTask(ctx context.Context, in *dfdaemon.DeleteTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockDfdaemonClient) DownloadTask(ctx context.Context, in *dfdaemon.DownloadTaskRequest, opts ...grpc.CallOption) (dfdaemon.Dfdaemon_DownloadTaskClient, error)
- func (m *MockDfdaemonClient) EXPECT() *MockDfdaemonClientMockRecorder
- func (m *MockDfdaemonClient) GetPieceNumbers(ctx context.Context, in *dfdaemon.GetPieceNumbersRequest, ...) (*dfdaemon.GetPieceNumbersResponse, error)
- func (m *MockDfdaemonClient) StatTask(ctx context.Context, in *dfdaemon.StatTaskRequest, opts ...grpc.CallOption) (*common.Task, error)
- func (m *MockDfdaemonClient) SyncPieces(ctx context.Context, in *dfdaemon.SyncPiecesRequest, opts ...grpc.CallOption) (dfdaemon.Dfdaemon_SyncPiecesClient, error)
- func (m *MockDfdaemonClient) UploadTask(ctx context.Context, in *dfdaemon.UploadTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- type MockDfdaemonClientMockRecorder
- func (mr *MockDfdaemonClientMockRecorder) DeleteTask(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDfdaemonClientMockRecorder) DownloadTask(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDfdaemonClientMockRecorder) GetPieceNumbers(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDfdaemonClientMockRecorder) StatTask(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDfdaemonClientMockRecorder) SyncPieces(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockDfdaemonClientMockRecorder) UploadTask(ctx, in any, opts ...any) *gomock.Call
- type MockDfdaemonServer
- func (m *MockDfdaemonServer) DeleteTask(arg0 context.Context, arg1 *dfdaemon.DeleteTaskRequest) (*emptypb.Empty, error)
- func (m *MockDfdaemonServer) DownloadTask(arg0 *dfdaemon.DownloadTaskRequest, arg1 dfdaemon.Dfdaemon_DownloadTaskServer) error
- func (m *MockDfdaemonServer) EXPECT() *MockDfdaemonServerMockRecorder
- func (m *MockDfdaemonServer) GetPieceNumbers(arg0 context.Context, arg1 *dfdaemon.GetPieceNumbersRequest) (*dfdaemon.GetPieceNumbersResponse, error)
- func (m *MockDfdaemonServer) StatTask(arg0 context.Context, arg1 *dfdaemon.StatTaskRequest) (*common.Task, error)
- func (m *MockDfdaemonServer) SyncPieces(arg0 *dfdaemon.SyncPiecesRequest, arg1 dfdaemon.Dfdaemon_SyncPiecesServer) error
- func (m *MockDfdaemonServer) UploadTask(arg0 context.Context, arg1 *dfdaemon.UploadTaskRequest) (*emptypb.Empty, error)
- type MockDfdaemonServerMockRecorder
- func (mr *MockDfdaemonServerMockRecorder) DeleteTask(arg0, arg1 any) *gomock.Call
- func (mr *MockDfdaemonServerMockRecorder) DownloadTask(arg0, arg1 any) *gomock.Call
- func (mr *MockDfdaemonServerMockRecorder) GetPieceNumbers(arg0, arg1 any) *gomock.Call
- func (mr *MockDfdaemonServerMockRecorder) StatTask(arg0, arg1 any) *gomock.Call
- func (mr *MockDfdaemonServerMockRecorder) SyncPieces(arg0, arg1 any) *gomock.Call
- func (mr *MockDfdaemonServerMockRecorder) UploadTask(arg0, arg1 any) *gomock.Call
- type MockDfdaemon_DownloadTaskClient
- func (m *MockDfdaemon_DownloadTaskClient) CloseSend() error
- func (m *MockDfdaemon_DownloadTaskClient) Context() context.Context
- func (m *MockDfdaemon_DownloadTaskClient) EXPECT() *MockDfdaemon_DownloadTaskClientMockRecorder
- func (m *MockDfdaemon_DownloadTaskClient) Header() (metadata.MD, error)
- func (m *MockDfdaemon_DownloadTaskClient) Recv() (*dfdaemon.DownloadTaskResponse, error)
- func (m_2 *MockDfdaemon_DownloadTaskClient) RecvMsg(m any) error
- func (m_2 *MockDfdaemon_DownloadTaskClient) SendMsg(m any) error
- func (m *MockDfdaemon_DownloadTaskClient) Trailer() metadata.MD
- type MockDfdaemon_DownloadTaskClientMockRecorder
- func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) Context() *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) Header() *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) Recv() *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) Trailer() *gomock.Call
- type MockDfdaemon_DownloadTaskServer
- func (m *MockDfdaemon_DownloadTaskServer) Context() context.Context
- func (m *MockDfdaemon_DownloadTaskServer) EXPECT() *MockDfdaemon_DownloadTaskServerMockRecorder
- func (m_2 *MockDfdaemon_DownloadTaskServer) RecvMsg(m any) error
- func (m *MockDfdaemon_DownloadTaskServer) Send(arg0 *dfdaemon.DownloadTaskResponse) error
- func (m *MockDfdaemon_DownloadTaskServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockDfdaemon_DownloadTaskServer) SendMsg(m any) error
- func (m *MockDfdaemon_DownloadTaskServer) SetHeader(arg0 metadata.MD) error
- func (m *MockDfdaemon_DownloadTaskServer) SetTrailer(arg0 metadata.MD)
- type MockDfdaemon_DownloadTaskServerMockRecorder
- func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) Context() *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) Send(arg0 any) *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) SendHeader(arg0 any) *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) SetHeader(arg0 any) *gomock.Call
- func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
- type MockDfdaemon_SyncPiecesClient
- func (m *MockDfdaemon_SyncPiecesClient) CloseSend() error
- func (m *MockDfdaemon_SyncPiecesClient) Context() context.Context
- func (m *MockDfdaemon_SyncPiecesClient) EXPECT() *MockDfdaemon_SyncPiecesClientMockRecorder
- func (m *MockDfdaemon_SyncPiecesClient) Header() (metadata.MD, error)
- func (m *MockDfdaemon_SyncPiecesClient) Recv() (*dfdaemon.SyncPiecesResponse, error)
- func (m_2 *MockDfdaemon_SyncPiecesClient) RecvMsg(m any) error
- func (m_2 *MockDfdaemon_SyncPiecesClient) SendMsg(m any) error
- func (m *MockDfdaemon_SyncPiecesClient) Trailer() metadata.MD
- type MockDfdaemon_SyncPiecesClientMockRecorder
- func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) Context() *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) Header() *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) Recv() *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) Trailer() *gomock.Call
- type MockDfdaemon_SyncPiecesServer
- func (m *MockDfdaemon_SyncPiecesServer) Context() context.Context
- func (m *MockDfdaemon_SyncPiecesServer) EXPECT() *MockDfdaemon_SyncPiecesServerMockRecorder
- func (m_2 *MockDfdaemon_SyncPiecesServer) RecvMsg(m any) error
- func (m *MockDfdaemon_SyncPiecesServer) Send(arg0 *dfdaemon.SyncPiecesResponse) error
- func (m *MockDfdaemon_SyncPiecesServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockDfdaemon_SyncPiecesServer) SendMsg(m any) error
- func (m *MockDfdaemon_SyncPiecesServer) SetHeader(arg0 metadata.MD) error
- func (m *MockDfdaemon_SyncPiecesServer) SetTrailer(arg0 metadata.MD)
- type MockDfdaemon_SyncPiecesServerMockRecorder
- func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) Context() *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) Send(arg0 any) *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) SendHeader(arg0 any) *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) SetHeader(arg0 any) *gomock.Call
- func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
- type MockUnsafeDfdaemonServer
- type MockUnsafeDfdaemonServerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDfdaemonClient ¶
type MockDfdaemonClient struct {
// contains filtered or unexported fields
}
MockDfdaemonClient is a mock of DfdaemonClient interface.
func NewMockDfdaemonClient ¶
func NewMockDfdaemonClient(ctrl *gomock.Controller) *MockDfdaemonClient
NewMockDfdaemonClient creates a new mock instance.
func (*MockDfdaemonClient) DeleteTask ¶
func (m *MockDfdaemonClient) DeleteTask(ctx context.Context, in *dfdaemon.DeleteTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeleteTask mocks base method.
func (*MockDfdaemonClient) DownloadTask ¶
func (m *MockDfdaemonClient) DownloadTask(ctx context.Context, in *dfdaemon.DownloadTaskRequest, opts ...grpc.CallOption) (dfdaemon.Dfdaemon_DownloadTaskClient, error)
DownloadTask mocks base method.
func (*MockDfdaemonClient) EXPECT ¶
func (m *MockDfdaemonClient) EXPECT() *MockDfdaemonClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDfdaemonClient) GetPieceNumbers ¶ added in v2.0.40
func (m *MockDfdaemonClient) GetPieceNumbers(ctx context.Context, in *dfdaemon.GetPieceNumbersRequest, opts ...grpc.CallOption) (*dfdaemon.GetPieceNumbersResponse, error)
GetPieceNumbers mocks base method.
func (*MockDfdaemonClient) StatTask ¶
func (m *MockDfdaemonClient) StatTask(ctx context.Context, in *dfdaemon.StatTaskRequest, opts ...grpc.CallOption) (*common.Task, error)
StatTask mocks base method.
func (*MockDfdaemonClient) SyncPieces ¶
func (m *MockDfdaemonClient) SyncPieces(ctx context.Context, in *dfdaemon.SyncPiecesRequest, opts ...grpc.CallOption) (dfdaemon.Dfdaemon_SyncPiecesClient, error)
SyncPieces mocks base method.
func (*MockDfdaemonClient) UploadTask ¶
func (m *MockDfdaemonClient) UploadTask(ctx context.Context, in *dfdaemon.UploadTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
UploadTask mocks base method.
type MockDfdaemonClientMockRecorder ¶
type MockDfdaemonClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDfdaemonClientMockRecorder is the mock recorder for MockDfdaemonClient.
func (*MockDfdaemonClientMockRecorder) DeleteTask ¶
func (mr *MockDfdaemonClientMockRecorder) DeleteTask(ctx, in any, opts ...any) *gomock.Call
DeleteTask indicates an expected call of DeleteTask.
func (*MockDfdaemonClientMockRecorder) DownloadTask ¶
func (mr *MockDfdaemonClientMockRecorder) DownloadTask(ctx, in any, opts ...any) *gomock.Call
DownloadTask indicates an expected call of DownloadTask.
func (*MockDfdaemonClientMockRecorder) GetPieceNumbers ¶ added in v2.0.40
func (mr *MockDfdaemonClientMockRecorder) GetPieceNumbers(ctx, in any, opts ...any) *gomock.Call
GetPieceNumbers indicates an expected call of GetPieceNumbers.
func (*MockDfdaemonClientMockRecorder) StatTask ¶
func (mr *MockDfdaemonClientMockRecorder) StatTask(ctx, in any, opts ...any) *gomock.Call
StatTask indicates an expected call of StatTask.
func (*MockDfdaemonClientMockRecorder) SyncPieces ¶
func (mr *MockDfdaemonClientMockRecorder) SyncPieces(ctx, in any, opts ...any) *gomock.Call
SyncPieces indicates an expected call of SyncPieces.
func (*MockDfdaemonClientMockRecorder) UploadTask ¶
func (mr *MockDfdaemonClientMockRecorder) UploadTask(ctx, in any, opts ...any) *gomock.Call
UploadTask indicates an expected call of UploadTask.
type MockDfdaemonServer ¶
type MockDfdaemonServer struct {
// contains filtered or unexported fields
}
MockDfdaemonServer is a mock of DfdaemonServer interface.
func NewMockDfdaemonServer ¶
func NewMockDfdaemonServer(ctrl *gomock.Controller) *MockDfdaemonServer
NewMockDfdaemonServer creates a new mock instance.
func (*MockDfdaemonServer) DeleteTask ¶
func (m *MockDfdaemonServer) DeleteTask(arg0 context.Context, arg1 *dfdaemon.DeleteTaskRequest) (*emptypb.Empty, error)
DeleteTask mocks base method.
func (*MockDfdaemonServer) DownloadTask ¶
func (m *MockDfdaemonServer) DownloadTask(arg0 *dfdaemon.DownloadTaskRequest, arg1 dfdaemon.Dfdaemon_DownloadTaskServer) error
DownloadTask mocks base method.
func (*MockDfdaemonServer) EXPECT ¶
func (m *MockDfdaemonServer) EXPECT() *MockDfdaemonServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDfdaemonServer) GetPieceNumbers ¶ added in v2.0.40
func (m *MockDfdaemonServer) GetPieceNumbers(arg0 context.Context, arg1 *dfdaemon.GetPieceNumbersRequest) (*dfdaemon.GetPieceNumbersResponse, error)
GetPieceNumbers mocks base method.
func (*MockDfdaemonServer) StatTask ¶
func (m *MockDfdaemonServer) StatTask(arg0 context.Context, arg1 *dfdaemon.StatTaskRequest) (*common.Task, error)
StatTask mocks base method.
func (*MockDfdaemonServer) SyncPieces ¶
func (m *MockDfdaemonServer) SyncPieces(arg0 *dfdaemon.SyncPiecesRequest, arg1 dfdaemon.Dfdaemon_SyncPiecesServer) error
SyncPieces mocks base method.
func (*MockDfdaemonServer) UploadTask ¶
func (m *MockDfdaemonServer) UploadTask(arg0 context.Context, arg1 *dfdaemon.UploadTaskRequest) (*emptypb.Empty, error)
UploadTask mocks base method.
type MockDfdaemonServerMockRecorder ¶
type MockDfdaemonServerMockRecorder struct {
// contains filtered or unexported fields
}
MockDfdaemonServerMockRecorder is the mock recorder for MockDfdaemonServer.
func (*MockDfdaemonServerMockRecorder) DeleteTask ¶
func (mr *MockDfdaemonServerMockRecorder) DeleteTask(arg0, arg1 any) *gomock.Call
DeleteTask indicates an expected call of DeleteTask.
func (*MockDfdaemonServerMockRecorder) DownloadTask ¶
func (mr *MockDfdaemonServerMockRecorder) DownloadTask(arg0, arg1 any) *gomock.Call
DownloadTask indicates an expected call of DownloadTask.
func (*MockDfdaemonServerMockRecorder) GetPieceNumbers ¶ added in v2.0.40
func (mr *MockDfdaemonServerMockRecorder) GetPieceNumbers(arg0, arg1 any) *gomock.Call
GetPieceNumbers indicates an expected call of GetPieceNumbers.
func (*MockDfdaemonServerMockRecorder) StatTask ¶
func (mr *MockDfdaemonServerMockRecorder) StatTask(arg0, arg1 any) *gomock.Call
StatTask indicates an expected call of StatTask.
func (*MockDfdaemonServerMockRecorder) SyncPieces ¶
func (mr *MockDfdaemonServerMockRecorder) SyncPieces(arg0, arg1 any) *gomock.Call
SyncPieces indicates an expected call of SyncPieces.
func (*MockDfdaemonServerMockRecorder) UploadTask ¶
func (mr *MockDfdaemonServerMockRecorder) UploadTask(arg0, arg1 any) *gomock.Call
UploadTask indicates an expected call of UploadTask.
type MockDfdaemon_DownloadTaskClient ¶ added in v2.0.51
type MockDfdaemon_DownloadTaskClient struct {
// contains filtered or unexported fields
}
MockDfdaemon_DownloadTaskClient is a mock of Dfdaemon_DownloadTaskClient interface.
func NewMockDfdaemon_DownloadTaskClient ¶ added in v2.0.51
func NewMockDfdaemon_DownloadTaskClient(ctrl *gomock.Controller) *MockDfdaemon_DownloadTaskClient
NewMockDfdaemon_DownloadTaskClient creates a new mock instance.
func (*MockDfdaemon_DownloadTaskClient) CloseSend ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskClient) CloseSend() error
CloseSend mocks base method.
func (*MockDfdaemon_DownloadTaskClient) Context ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskClient) Context() context.Context
Context mocks base method.
func (*MockDfdaemon_DownloadTaskClient) EXPECT ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskClient) EXPECT() *MockDfdaemon_DownloadTaskClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDfdaemon_DownloadTaskClient) Header ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockDfdaemon_DownloadTaskClient) Recv ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskClient) Recv() (*dfdaemon.DownloadTaskResponse, error)
Recv mocks base method.
func (*MockDfdaemon_DownloadTaskClient) RecvMsg ¶ added in v2.0.51
func (m_2 *MockDfdaemon_DownloadTaskClient) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockDfdaemon_DownloadTaskClient) SendMsg ¶ added in v2.0.51
func (m_2 *MockDfdaemon_DownloadTaskClient) SendMsg(m any) error
SendMsg mocks base method.
func (*MockDfdaemon_DownloadTaskClient) Trailer ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskClient) Trailer() metadata.MD
Trailer mocks base method.
type MockDfdaemon_DownloadTaskClientMockRecorder ¶ added in v2.0.51
type MockDfdaemon_DownloadTaskClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDfdaemon_DownloadTaskClientMockRecorder is the mock recorder for MockDfdaemon_DownloadTaskClient.
func (*MockDfdaemon_DownloadTaskClientMockRecorder) CloseSend ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockDfdaemon_DownloadTaskClientMockRecorder) Context ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockDfdaemon_DownloadTaskClientMockRecorder) Header ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockDfdaemon_DownloadTaskClientMockRecorder) Recv ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockDfdaemon_DownloadTaskClientMockRecorder) RecvMsg ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockDfdaemon_DownloadTaskClientMockRecorder) SendMsg ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockDfdaemon_DownloadTaskClientMockRecorder) Trailer ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockDfdaemon_DownloadTaskServer ¶ added in v2.0.51
type MockDfdaemon_DownloadTaskServer struct {
// contains filtered or unexported fields
}
MockDfdaemon_DownloadTaskServer is a mock of Dfdaemon_DownloadTaskServer interface.
func NewMockDfdaemon_DownloadTaskServer ¶ added in v2.0.51
func NewMockDfdaemon_DownloadTaskServer(ctrl *gomock.Controller) *MockDfdaemon_DownloadTaskServer
NewMockDfdaemon_DownloadTaskServer creates a new mock instance.
func (*MockDfdaemon_DownloadTaskServer) Context ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskServer) Context() context.Context
Context mocks base method.
func (*MockDfdaemon_DownloadTaskServer) EXPECT ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskServer) EXPECT() *MockDfdaemon_DownloadTaskServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDfdaemon_DownloadTaskServer) RecvMsg ¶ added in v2.0.51
func (m_2 *MockDfdaemon_DownloadTaskServer) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockDfdaemon_DownloadTaskServer) Send ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskServer) Send(arg0 *dfdaemon.DownloadTaskResponse) error
Send mocks base method.
func (*MockDfdaemon_DownloadTaskServer) SendHeader ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockDfdaemon_DownloadTaskServer) SendMsg ¶ added in v2.0.51
func (m_2 *MockDfdaemon_DownloadTaskServer) SendMsg(m any) error
SendMsg mocks base method.
func (*MockDfdaemon_DownloadTaskServer) SetHeader ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockDfdaemon_DownloadTaskServer) SetTrailer ¶ added in v2.0.51
func (m *MockDfdaemon_DownloadTaskServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockDfdaemon_DownloadTaskServerMockRecorder ¶ added in v2.0.51
type MockDfdaemon_DownloadTaskServerMockRecorder struct {
// contains filtered or unexported fields
}
MockDfdaemon_DownloadTaskServerMockRecorder is the mock recorder for MockDfdaemon_DownloadTaskServer.
func (*MockDfdaemon_DownloadTaskServerMockRecorder) Context ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockDfdaemon_DownloadTaskServerMockRecorder) RecvMsg ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockDfdaemon_DownloadTaskServerMockRecorder) Send ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) Send(arg0 any) *gomock.Call
Send indicates an expected call of Send.
func (*MockDfdaemon_DownloadTaskServerMockRecorder) SendHeader ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) SendHeader(arg0 any) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockDfdaemon_DownloadTaskServerMockRecorder) SendMsg ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockDfdaemon_DownloadTaskServerMockRecorder) SetHeader ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) SetHeader(arg0 any) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockDfdaemon_DownloadTaskServerMockRecorder) SetTrailer ¶ added in v2.0.51
func (mr *MockDfdaemon_DownloadTaskServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
type MockDfdaemon_SyncPiecesClient ¶
type MockDfdaemon_SyncPiecesClient struct {
// contains filtered or unexported fields
}
MockDfdaemon_SyncPiecesClient is a mock of Dfdaemon_SyncPiecesClient interface.
func NewMockDfdaemon_SyncPiecesClient ¶
func NewMockDfdaemon_SyncPiecesClient(ctrl *gomock.Controller) *MockDfdaemon_SyncPiecesClient
NewMockDfdaemon_SyncPiecesClient creates a new mock instance.
func (*MockDfdaemon_SyncPiecesClient) CloseSend ¶
func (m *MockDfdaemon_SyncPiecesClient) CloseSend() error
CloseSend mocks base method.
func (*MockDfdaemon_SyncPiecesClient) Context ¶
func (m *MockDfdaemon_SyncPiecesClient) Context() context.Context
Context mocks base method.
func (*MockDfdaemon_SyncPiecesClient) EXPECT ¶
func (m *MockDfdaemon_SyncPiecesClient) EXPECT() *MockDfdaemon_SyncPiecesClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDfdaemon_SyncPiecesClient) Header ¶
func (m *MockDfdaemon_SyncPiecesClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockDfdaemon_SyncPiecesClient) Recv ¶
func (m *MockDfdaemon_SyncPiecesClient) Recv() (*dfdaemon.SyncPiecesResponse, error)
Recv mocks base method.
func (*MockDfdaemon_SyncPiecesClient) RecvMsg ¶
func (m_2 *MockDfdaemon_SyncPiecesClient) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockDfdaemon_SyncPiecesClient) SendMsg ¶
func (m_2 *MockDfdaemon_SyncPiecesClient) SendMsg(m any) error
SendMsg mocks base method.
func (*MockDfdaemon_SyncPiecesClient) Trailer ¶
func (m *MockDfdaemon_SyncPiecesClient) Trailer() metadata.MD
Trailer mocks base method.
type MockDfdaemon_SyncPiecesClientMockRecorder ¶
type MockDfdaemon_SyncPiecesClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDfdaemon_SyncPiecesClientMockRecorder is the mock recorder for MockDfdaemon_SyncPiecesClient.
func (*MockDfdaemon_SyncPiecesClientMockRecorder) CloseSend ¶
func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockDfdaemon_SyncPiecesClientMockRecorder) Context ¶
func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockDfdaemon_SyncPiecesClientMockRecorder) Header ¶
func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockDfdaemon_SyncPiecesClientMockRecorder) Recv ¶
func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockDfdaemon_SyncPiecesClientMockRecorder) RecvMsg ¶
func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockDfdaemon_SyncPiecesClientMockRecorder) SendMsg ¶
func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockDfdaemon_SyncPiecesClientMockRecorder) Trailer ¶
func (mr *MockDfdaemon_SyncPiecesClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockDfdaemon_SyncPiecesServer ¶
type MockDfdaemon_SyncPiecesServer struct {
// contains filtered or unexported fields
}
MockDfdaemon_SyncPiecesServer is a mock of Dfdaemon_SyncPiecesServer interface.
func NewMockDfdaemon_SyncPiecesServer ¶
func NewMockDfdaemon_SyncPiecesServer(ctrl *gomock.Controller) *MockDfdaemon_SyncPiecesServer
NewMockDfdaemon_SyncPiecesServer creates a new mock instance.
func (*MockDfdaemon_SyncPiecesServer) Context ¶
func (m *MockDfdaemon_SyncPiecesServer) Context() context.Context
Context mocks base method.
func (*MockDfdaemon_SyncPiecesServer) EXPECT ¶
func (m *MockDfdaemon_SyncPiecesServer) EXPECT() *MockDfdaemon_SyncPiecesServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDfdaemon_SyncPiecesServer) RecvMsg ¶
func (m_2 *MockDfdaemon_SyncPiecesServer) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockDfdaemon_SyncPiecesServer) Send ¶
func (m *MockDfdaemon_SyncPiecesServer) Send(arg0 *dfdaemon.SyncPiecesResponse) error
Send mocks base method.
func (*MockDfdaemon_SyncPiecesServer) SendHeader ¶
func (m *MockDfdaemon_SyncPiecesServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockDfdaemon_SyncPiecesServer) SendMsg ¶
func (m_2 *MockDfdaemon_SyncPiecesServer) SendMsg(m any) error
SendMsg mocks base method.
func (*MockDfdaemon_SyncPiecesServer) SetHeader ¶
func (m *MockDfdaemon_SyncPiecesServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockDfdaemon_SyncPiecesServer) SetTrailer ¶
func (m *MockDfdaemon_SyncPiecesServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockDfdaemon_SyncPiecesServerMockRecorder ¶
type MockDfdaemon_SyncPiecesServerMockRecorder struct {
// contains filtered or unexported fields
}
MockDfdaemon_SyncPiecesServerMockRecorder is the mock recorder for MockDfdaemon_SyncPiecesServer.
func (*MockDfdaemon_SyncPiecesServerMockRecorder) Context ¶
func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockDfdaemon_SyncPiecesServerMockRecorder) RecvMsg ¶
func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockDfdaemon_SyncPiecesServerMockRecorder) Send ¶
func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) Send(arg0 any) *gomock.Call
Send indicates an expected call of Send.
func (*MockDfdaemon_SyncPiecesServerMockRecorder) SendHeader ¶
func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) SendHeader(arg0 any) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockDfdaemon_SyncPiecesServerMockRecorder) SendMsg ¶
func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockDfdaemon_SyncPiecesServerMockRecorder) SetHeader ¶
func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) SetHeader(arg0 any) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockDfdaemon_SyncPiecesServerMockRecorder) SetTrailer ¶
func (mr *MockDfdaemon_SyncPiecesServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
type MockUnsafeDfdaemonServer ¶
type MockUnsafeDfdaemonServer struct {
// contains filtered or unexported fields
}
MockUnsafeDfdaemonServer is a mock of UnsafeDfdaemonServer interface.
func NewMockUnsafeDfdaemonServer ¶
func NewMockUnsafeDfdaemonServer(ctrl *gomock.Controller) *MockUnsafeDfdaemonServer
NewMockUnsafeDfdaemonServer creates a new mock instance.
func (*MockUnsafeDfdaemonServer) EXPECT ¶
func (m *MockUnsafeDfdaemonServer) EXPECT() *MockUnsafeDfdaemonServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeDfdaemonServerMockRecorder ¶
type MockUnsafeDfdaemonServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeDfdaemonServerMockRecorder is the mock recorder for MockUnsafeDfdaemonServer.