Skip to content

Find, verify, and analyze leaked credentials

[chore] Rename file to legacy_reporters.go (#2406)

Miccah8f01326468ee
diff --git a/pkg/sources/chan_reporter.go b/pkg/sources/legacy_reporters.go
similarity index 85%
rename from pkg/sources/chan_reporter.go
rename to pkg/sources/legacy_reporters.go
index 56adad83f..15c3c806e 100644
--- a/pkg/sources/chan_reporter.go
+++ b/pkg/sources/legacy_reporters.go
@@ -23,6 +23,9 @@ func (ChanReporter) ChunkErr(ctx context.Context, err error) error {
var _ UnitReporter = (*VisitorReporter)(nil)
+// VisitorReporter is a UnitReporter that will call the provided callbacks for
+// finding units and reporting errors. VisitErr is optional; if unset it will
+// log the error.
type VisitorReporter struct {
VisitUnit func(context.Context, SourceUnit) error
VisitErr func(context.Context, error) error