Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDaemonServer
- func (m *MockDaemonServer) CheckHealth(arg0 context.Context) error
- func (m *MockDaemonServer) DeleteTask(arg0 context.Context, arg1 *dfdaemon.DeleteTaskRequest) error
- func (m *MockDaemonServer) Download(arg0 context.Context, arg1 *dfdaemon.DownRequest, ...) error
- func (m *MockDaemonServer) EXPECT() *MockDaemonServerMockRecorder
- func (m *MockDaemonServer) ExportTask(arg0 context.Context, arg1 *dfdaemon.ExportTaskRequest) error
- func (m *MockDaemonServer) GetPieceTasks(arg0 context.Context, arg1 *base.PieceTaskRequest) (*base.PiecePacket, error)
- func (m *MockDaemonServer) ImportTask(arg0 context.Context, arg1 *dfdaemon.ImportTaskRequest) error
- func (m *MockDaemonServer) StatTask(arg0 context.Context, arg1 *dfdaemon.StatTaskRequest) error
- func (m *MockDaemonServer) SyncPieceTasks(arg0 dfdaemon.Daemon_SyncPieceTasksServer) error
- type MockDaemonServerMockRecorder
- func (mr *MockDaemonServerMockRecorder) CheckHealth(arg0 interface{}) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) DeleteTask(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) Download(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) ExportTask(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) GetPieceTasks(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) ImportTask(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) StatTask(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDaemonServerMockRecorder) SyncPieceTasks(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) error
CheckHealth mocks base method.
func (*MockDaemonServer) DeleteTask ¶ added in v2.0.4
func (m *MockDaemonServer) DeleteTask(arg0 context.Context, arg1 *dfdaemon.DeleteTaskRequest) error
DeleteTask mocks base method.
func (*MockDaemonServer) Download ¶
func (m *MockDaemonServer) Download(arg0 context.Context, arg1 *dfdaemon.DownRequest, arg2 chan<- *dfdaemon.DownResult) 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 ¶ added in v2.0.4
func (m *MockDaemonServer) ExportTask(arg0 context.Context, arg1 *dfdaemon.ExportTaskRequest) error
ExportTask mocks base method.
func (*MockDaemonServer) GetPieceTasks ¶
func (m *MockDaemonServer) GetPieceTasks(arg0 context.Context, arg1 *base.PieceTaskRequest) (*base.PiecePacket, error)
GetPieceTasks mocks base method.
func (*MockDaemonServer) ImportTask ¶ added in v2.0.4
func (m *MockDaemonServer) ImportTask(arg0 context.Context, arg1 *dfdaemon.ImportTaskRequest) error
ImportTask mocks base method.
func (*MockDaemonServer) StatTask ¶ added in v2.0.4
func (m *MockDaemonServer) StatTask(arg0 context.Context, arg1 *dfdaemon.StatTaskRequest) error
StatTask mocks base method.
func (*MockDaemonServer) SyncPieceTasks ¶ added in v2.0.4
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 interface{}) *gomock.Call
CheckHealth indicates an expected call of CheckHealth.
func (*MockDaemonServerMockRecorder) DeleteTask ¶ added in v2.0.4
func (mr *MockDaemonServerMockRecorder) DeleteTask(arg0, arg1 interface{}) *gomock.Call
DeleteTask indicates an expected call of DeleteTask.
func (*MockDaemonServerMockRecorder) Download ¶
func (mr *MockDaemonServerMockRecorder) Download(arg0, arg1, arg2 interface{}) *gomock.Call
Download indicates an expected call of Download.
func (*MockDaemonServerMockRecorder) ExportTask ¶ added in v2.0.4
func (mr *MockDaemonServerMockRecorder) ExportTask(arg0, arg1 interface{}) *gomock.Call
ExportTask indicates an expected call of ExportTask.
func (*MockDaemonServerMockRecorder) GetPieceTasks ¶
func (mr *MockDaemonServerMockRecorder) GetPieceTasks(arg0, arg1 interface{}) *gomock.Call
GetPieceTasks indicates an expected call of GetPieceTasks.
func (*MockDaemonServerMockRecorder) ImportTask ¶ added in v2.0.4
func (mr *MockDaemonServerMockRecorder) ImportTask(arg0, arg1 interface{}) *gomock.Call
ImportTask indicates an expected call of ImportTask.
func (*MockDaemonServerMockRecorder) StatTask ¶ added in v2.0.4
func (mr *MockDaemonServerMockRecorder) StatTask(arg0, arg1 interface{}) *gomock.Call
StatTask indicates an expected call of StatTask.
func (*MockDaemonServerMockRecorder) SyncPieceTasks ¶ added in v2.0.4
func (mr *MockDaemonServerMockRecorder) SyncPieceTasks(arg0 interface{}) *gomock.Call
SyncPieceTasks indicates an expected call of SyncPieceTasks.