Files
audita/internal/framework/runner/progress.go

19 lines
437 B
Go
Raw Normal View History

package runner
// Progress identifies work admitted or completed by the runner.
type Progress struct {
ModuleIndex int
ModuleKey string
ModuleID *string
SectionIndex *int
State string
Count *int
}
func (event Progress) emit(callback func(Progress), state string, section *int, count *int) {
if callback != nil {
event.State, event.SectionIndex, event.Count = state, section, count
callback(event)
}
}