Documentation ¶
Index ¶
- Variables
- func Cancel(token types.ProgressToken)
- func CleanupChannels()
- func IsCanceled(token types.ProgressToken) bool
- type Tracker
- func (t *Tracker) Begin(title string)
- func (t *Tracker) BeginUnquantifiableLength(title, message string)
- func (t *Tracker) BeginWithMessage(title, message string)
- func (t *Tracker) CancelOrDone(onCancel func(), doneCh <-chan struct{})
- func (t *Tracker) End()
- func (t *Tracker) EndWithMessage(message string)
- func (t *Tracker) GetCancelChannel() chan bool
- func (t *Tracker) GetChannel() chan types.ProgressParams
- func (t *Tracker) GetToken() types.ProgressToken
- func (t *Tracker) IsCanceled() bool
- func (t *Tracker) Report(percentage int)
- func (t *Tracker) ReportWithMessage(percentage int, message string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ToServerProgressChannel = make(chan types.ProgressParams, 100000)
Functions ¶
func Cancel ¶
func Cancel(token types.ProgressToken)
func CleanupChannels ¶
func CleanupChannels()
CleanupChannels is Test-Only. Don't use for non-test code
func IsCanceled ¶
func IsCanceled(token types.ProgressToken) bool
Types ¶
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
func NewTestTracker ¶
func NewTestTracker(channel chan types.ProgressParams, cancelChannel chan bool) *Tracker
func NewTracker ¶
func (*Tracker) BeginUnquantifiableLength ¶
func (*Tracker) BeginWithMessage ¶
func (*Tracker) CancelOrDone ¶
func (t *Tracker) CancelOrDone(onCancel func(), doneCh <-chan struct{})
func (*Tracker) EndWithMessage ¶
func (*Tracker) GetCancelChannel ¶
func (*Tracker) GetChannel ¶
func (t *Tracker) GetChannel() chan types.ProgressParams
func (*Tracker) GetToken ¶
func (t *Tracker) GetToken() types.ProgressToken
func (*Tracker) IsCanceled ¶
func (*Tracker) ReportWithMessage ¶
Click to show internal directories.
Click to hide internal directories.