mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
[chore] Rename file to legacy_reporters.go (#2406)
This commit is contained in:
parent
9642d4c8fd
commit
8f01326468
1 changed files with 3 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue