Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
[chore] Rename file to legacy_reporters.go (#2406)
Miccah8f01326468ee
diff --git a/pkg/sources/chan_reporter.go b/pkg/sources/legacy_reporters.gosimilarity index 85%rename from pkg/sources/chan_reporter.gorename to pkg/sources/legacy_reporters.goindex 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) errorVisitErr func(context.Context, error) error