Documentation ¶
Index ¶
- Constants
- type PipelineGC
- func (s *PipelineGC) Adder(taskFunc harmonytask.AddTaskFunc)
- func (s *PipelineGC) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (s *PipelineGC) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (s *PipelineGC) TypeDetails() harmonytask.TaskTypeDetails
- type StorageEndpointGC
- func (s *StorageEndpointGC) Adder(taskFunc harmonytask.AddTaskFunc)
- func (s *StorageEndpointGC) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (s *StorageEndpointGC) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (s *StorageEndpointGC) TypeDetails() harmonytask.TaskTypeDetails
- type StorageGCMark
- func (s *StorageGCMark) Adder(taskFunc harmonytask.AddTaskFunc)
- func (s *StorageGCMark) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (s *StorageGCMark) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (s *StorageGCMark) TypeDetails() harmonytask.TaskTypeDetails
- type StorageGCMarkNodeAPI
- type StorageGCSweep
- func (s *StorageGCSweep) Adder(taskFunc harmonytask.AddTaskFunc)
- func (s *StorageGCSweep) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (s *StorageGCSweep) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (s *StorageGCSweep) TypeDetails() harmonytask.TaskTypeDetails
Constants ¶
View Source
const MaxParallelEndpointChecks = 32
View Source
const SDRPipelineGCInterval = 19 * time.Minute
View Source
const StorageEndpointDeadTime = StorageEndpointGCInterval * 6 // ~2h
View Source
const StorageEndpointGCInterval = 21 * time.Minute
View Source
const StorageGCInterval = 9 * time.Minute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PipelineGC ¶ added in v1.23.0
type PipelineGC struct {
// contains filtered or unexported fields
}
func NewPipelineGC ¶ added in v1.23.0
func NewPipelineGC(db *harmonydb.DB) *PipelineGC
func (*PipelineGC) Adder ¶ added in v1.23.0
func (s *PipelineGC) Adder(taskFunc harmonytask.AddTaskFunc)
func (*PipelineGC) CanAccept ¶ added in v1.23.0
func (s *PipelineGC) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*PipelineGC) Do ¶ added in v1.23.0
func (s *PipelineGC) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*PipelineGC) TypeDetails ¶ added in v1.23.0
func (s *PipelineGC) TypeDetails() harmonytask.TaskTypeDetails
type StorageEndpointGC ¶
type StorageEndpointGC struct {
// contains filtered or unexported fields
}
func NewStorageEndpointGC ¶
func NewStorageEndpointGC(si paths.SectorIndex, remote *paths.Remote, db *harmonydb.DB) *StorageEndpointGC
func (*StorageEndpointGC) Adder ¶
func (s *StorageEndpointGC) Adder(taskFunc harmonytask.AddTaskFunc)
func (*StorageEndpointGC) CanAccept ¶
func (s *StorageEndpointGC) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*StorageEndpointGC) Do ¶
func (s *StorageEndpointGC) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*StorageEndpointGC) TypeDetails ¶
func (s *StorageEndpointGC) TypeDetails() harmonytask.TaskTypeDetails
type StorageGCMark ¶
type StorageGCMark struct {
// contains filtered or unexported fields
}
func NewStorageGCMark ¶
func NewStorageGCMark(si paths.SectorIndex, remote *paths.Remote, db *harmonydb.DB, bstore curiochain.CurioBlockstore, api StorageGCMarkNodeAPI) *StorageGCMark
func (*StorageGCMark) Adder ¶
func (s *StorageGCMark) Adder(taskFunc harmonytask.AddTaskFunc)
func (*StorageGCMark) CanAccept ¶
func (s *StorageGCMark) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*StorageGCMark) Do ¶
func (s *StorageGCMark) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*StorageGCMark) TypeDetails ¶
func (s *StorageGCMark) TypeDetails() harmonytask.TaskTypeDetails
type StorageGCMarkNodeAPI ¶
type StorageGCSweep ¶
type StorageGCSweep struct {
// contains filtered or unexported fields
}
func NewStorageGCSweep ¶
func NewStorageGCSweep(db *harmonydb.DB, storage *paths.Remote, index paths.SectorIndex) *StorageGCSweep
func (*StorageGCSweep) Adder ¶
func (s *StorageGCSweep) Adder(taskFunc harmonytask.AddTaskFunc)
func (*StorageGCSweep) CanAccept ¶
func (s *StorageGCSweep) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*StorageGCSweep) Do ¶
func (s *StorageGCSweep) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*StorageGCSweep) TypeDetails ¶
func (s *StorageGCSweep) TypeDetails() harmonytask.TaskTypeDetails
Click to show internal directories.
Click to hide internal directories.