progress

package
v0.1.0-beta-3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager

func NewManager() (daemon.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(taskID string, record *types.SeedPiece) error

Publish 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 daemon.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