process

package
v0.0.0-...-a2be96e Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Pause = errors.New("pause task")

Functions

This section is empty.

Types

type Context

type Context interface {
	context.Context
	Progress() Progress
	UpdateProgress(Progress)
	AddStats(d, r, w int64)
}

type Progress

type Progress struct {
	// contains filtered or unexported fields
}

func (Progress) Add

func (p Progress) Add(inc int64) Progress

func (Progress) Completed

func (p Progress) Completed() bool

func (Progress) Done

func (p Progress) Done() int64

func (Progress) Percent

func (p Progress) Percent() int

func (Progress) Total

func (p Progress) Total() int64

func (Progress) WithTotal

func (p Progress) WithTotal(total int64) Progress

Jump to

Keyboard shortcuts

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