progress

package
v0.0.0-...-7a09d4d Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2018 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

Component ...

func (*Component) Increment

func (c *Component) Increment(inc uint64)

Increment increments the progress by the specified amount.

func (*Component) Progress

func (c *Component) Progress(progress uint64)

Progress sets the progress.

func (*Component) Reporter

func (c *Component) Reporter() ReportFunc

func (*Component) Total

func (c *Component) Total(total uint64)

Total sets the total and sets ready to true.

type ReportFunc

type ReportFunc func(total, progress uint64, pct float64)

ReportFunc ...

type Status

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

Status ...

func New

func New(reporter ReportFunc) *Status

New ...

func (*Status) NewComponent

func (s *Status) NewComponent() *Component

NewComponent returns a new sub-component of the aggregate status.

Jump to

Keyboard shortcuts

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