Documentation ¶
Index ¶
- Variables
- type CleanupPieceTask
- func (c *CleanupPieceTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (c *CleanupPieceTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (c *CleanupPieceTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (c *CleanupPieceTask) TypeDetails() harmonytask.TaskTypeDetails
- type ParkPieceTask
- func (p *ParkPieceTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (p *ParkPieceTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (p *ParkPieceTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (p *ParkPieceTask) TypeDetails() harmonytask.TaskTypeDetails
Constants ¶
This section is empty.
Variables ¶
View Source
var PieceParkPollInterval = time.Second * 15
Functions ¶
This section is empty.
Types ¶
type CleanupPieceTask ¶
type CleanupPieceTask struct { TF promise.Promise[harmonytask.AddTaskFunc] // contains filtered or unexported fields }
func NewCleanupPieceTask ¶
func (*CleanupPieceTask) Adder ¶
func (c *CleanupPieceTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*CleanupPieceTask) CanAccept ¶
func (c *CleanupPieceTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*CleanupPieceTask) Do ¶
func (c *CleanupPieceTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*CleanupPieceTask) TypeDetails ¶
func (c *CleanupPieceTask) TypeDetails() harmonytask.TaskTypeDetails
type ParkPieceTask ¶
type ParkPieceTask struct { TF promise.Promise[harmonytask.AddTaskFunc] // contains filtered or unexported fields }
ParkPieceTask gets a piece from some origin, and parks it in storage Pieces are always f00, piece ID is mapped to pieceCID in the DB
func NewParkPieceTask ¶
func (*ParkPieceTask) Adder ¶
func (p *ParkPieceTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*ParkPieceTask) CanAccept ¶
func (p *ParkPieceTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*ParkPieceTask) Do ¶
func (p *ParkPieceTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*ParkPieceTask) TypeDetails ¶
func (p *ParkPieceTask) TypeDetails() harmonytask.TaskTypeDetails
Click to show internal directories.
Click to hide internal directories.