tasks

package
v0.0.0-...-202aceb Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2016 License: EPL-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feedback

type Feedback interface {
	// IsDone() should return true if the feedback is complete due
	// to the completion of the Execution.
	IsDone() bool

	// Progress() provides update messages as execution is carried out.
	// The result of calling this function provides a human readable
	// update of progress, followed by how much progress has been made
	// in between [0.0, 1.0], negative value mean 'unknown' amount of
	// progress, and finally if an error has occured this method
	// provides the error.
	Progress() (message string, completedPct float32, failure error)
}

type Gatherer

type Gatherer interface {
	// Usage explains the function of this gatherer.  Used when listing
	// the Gatherers in the entire system.
	Usage() string

	// Exec() accepts a few data points in order to direct the processing
	// carried out by this Gatherer.
	Exec(*conf.Conf) chan Feedback
}

Gatherers should not require a constructor, and a pointer literal should suffice.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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