Documentation
¶
Overview ¶
Package fanout runs Git jobs across repositories in a bounded rolling worker pool. Workers own each job's output buffers; only the calling goroutine writes scribe output and advances progress, in completion order.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
Job is a single Git invocation. Dir is the working directory, empty for the current one; Name identifies the job in output and errors and defaults to Dir.
type Result ¶
Result holds the captured output of a Job. Index is the job's position in the slice passed to Run.
func Run ¶
func Run(ctx context.Context, scrb scribe.Scriber, label string, jobs []Job, limit int) ([]*Result, error)
Run executes jobs with at most limit Git processes active at once. Failures do not stop other jobs; they are joined into the returned error. Cancellation kills active Git process trees and skips queued jobs. Results are returned in completion order.