Documentation ¶
Index ¶
- func NewManager() (supervisor.SeedProgressMgr, error)
- type Manager
- func (pm *Manager) Clear(taskID string) error
- func (pm *Manager) GetPieces(ctx context.Context, taskID string) (records []*types.SeedPiece, err error)
- func (pm *Manager) InitSeedProgress(ctx context.Context, taskID string)
- func (pm *Manager) PublishPiece(ctx context.Context, taskID string, record *types.SeedPiece) error
- func (pm *Manager) PublishTask(ctx context.Context, taskID string, task *types.SeedTask) error
- func (pm *Manager) SetTaskMgr(taskMgr supervisor.SeedTaskMgr)
- func (pm *Manager) WatchSeedProgress(ctx context.Context, taskID string) (<-chan *types.SeedPiece, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
func NewManager() (supervisor.SeedProgressMgr, error)
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) InitSeedProgress ¶
func (*Manager) PublishPiece ¶
PublishPiece publish seedPiece
func (*Manager) PublishTask ¶
func (*Manager) SetTaskMgr ¶
func (pm *Manager) SetTaskMgr(taskMgr supervisor.SeedTaskMgr)
Click to show internal directories.
Click to hide internal directories.