tracker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RUNNING = iota
	DONE
	ERROR
)

Variables

This section is empty.

Functions

func NewTracker

func NewTracker() *defaultTracker

Types

type ViewStatus

type ViewStatus struct {
	Status     int
	LastReport string
}

type ViewTracker

type ViewTracker interface {
	Status() int

	Report(msg string)

	LatestReport() string

	Error(err error)

	Done(result interface{})

	ViewStatus() *ViewStatus
}

func GetViewTracker

func GetViewTracker(ctx view2.ServiceProvider) (ViewTracker, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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