progress

package
v2.0.1-rc.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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) Clear

func (pm *Manager) Clear(taskID string) error

func (*Manager) GetPieces

func (pm *Manager) GetPieces(ctx context.Context, taskID string) (records []*types.SeedPiece, err error)

func (*Manager) InitSeedProgress

func (pm *Manager) InitSeedProgress(ctx context.Context, taskID string)

func (*Manager) PublishPiece

func (pm *Manager) PublishPiece(ctx context.Context, taskID string, record *types.SeedPiece) error

PublishPiece publish seedPiece

func (*Manager) PublishTask

func (pm *Manager) PublishTask(ctx context.Context, taskID string, task *types.SeedTask) error

func (*Manager) SetTaskMgr

func (pm *Manager) SetTaskMgr(taskMgr supervisor.SeedTaskMgr)

func (*Manager) WatchSeedProgress

func (pm *Manager) WatchSeedProgress(ctx context.Context, taskID string) (<-chan *types.SeedPiece, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL