MCPcopy Create free account
hub / github.com/aptly-dev/aptly / progressWorkerFactroy

Function progressWorkerFactroy

console/progress.go:186–194  ·  view source on GitHub ↗
(structuredLogging bool, progress *Progress)

Source from the content-addressed store, hash-verified

184}
185
186func progressWorkerFactroy(structuredLogging bool, progress *Progress) ProgressWorker {
187 if structuredLogging {
188 worker := loggerProgressWorker{progress: progress}
189 return &worker
190 }
191
192 worker := standardProgressWorker{progress: progress}
193 return &worker
194}
195
196type standardProgressWorker struct {
197 progress *Progress

Callers 1

NewProgressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected