Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher interface {
RunSequential(ctx context.Context, tasks []Task) error
// RunParallel runs tasks concurrently; concurrency 0 uses runtime.NumCPU().
RunParallel(ctx context.Context, tasks []Task, concurrency int) error
}
Dispatcher schedules and coordinates Tasks.
type ProgressReporter ¶
type ProgressReporter interface {
Report(event ingitdb.ProgressEvent)
}
ProgressReporter receives events from the dispatcher. Goroutine-safe; must not block.
Click to show internal directories.
Click to hide internal directories.