Documentation ¶
Index ¶
- func IsSame(task1, task2 *types.SeedTask) bool
- type Manager
- func (tm *Manager) AddOrUpdate(registerTask *types.SeedTask) (seedTask *types.SeedTask, err error)
- func (tm Manager) Delete(taskID string) error
- func (tm Manager) Exist(taskID string) (*types.SeedTask, bool)
- func (tm *Manager) GC() error
- func (tm Manager) Get(taskID string) (*types.SeedTask, error)
- func (tm *Manager) GetPieces(ctx context.Context, taskID string) (pieces []*types.SeedPiece, err error)
- func (tm *Manager) Register(ctx context.Context, registerTask *types.SeedTask) (pieceChan <-chan *types.SeedPiece, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is an implementation of the interface of TaskMgr.
func NewManager ¶
func NewManager(cfg *config.Config, cdnMgr supervisor.CDNMgr, progressMgr supervisor.SeedProgressMgr) (*Manager, error)
NewManager returns a new Manager Object.
func (*Manager) AddOrUpdate ¶ added in v2.0.2
Click to show internal directories.
Click to hide internal directories.