Documentation ¶
Index ¶
- type TransferTask
- func (job *TransferTask) Creator() uint
- func (job *TransferTask) Do()
- func (job *TransferTask) GetError() *task.JobError
- func (job *TransferTask) Model() *model.Task
- func (job *TransferTask) Props() string
- func (job *TransferTask) Recycle()
- func (job *TransferTask) SetError(err *task.JobError)
- func (job *TransferTask) SetErrorMsg(msg string, err error)
- func (job *TransferTask) SetStatus(status int)
- func (job *TransferTask) Type() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransferTask ¶
type TransferTask struct { Err *task.JobError Req *serializer.SlaveTransferReq MasterID string }
TransferTask 文件中转任务
func (*TransferTask) GetError ¶
func (job *TransferTask) GetError() *task.JobError
GetError 返回任务失败信息
func (*TransferTask) SetError ¶
func (job *TransferTask) SetError(err *task.JobError)
SetError 设定任务失败信息
func (*TransferTask) SetErrorMsg ¶
func (job *TransferTask) SetErrorMsg(msg string, err error)
SetErrorMsg 设定任务失败信息
Click to show internal directories.
Click to hide internal directories.