-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from underdog-tech/fix/reporttime-time-objects
fix: Use time.Time structs for the reportTime passed to reporters
- Loading branch information
Showing
6 changed files
with
37 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
package reporting | ||
|
||
import "sync" | ||
import ( | ||
"sync" | ||
"time" | ||
) | ||
|
||
type Reporter interface { | ||
SendSummaryReport( | ||
header string, | ||
numRepos int, | ||
report VulnerabilityReport, | ||
reportTime int64, | ||
reportTime time.Time, | ||
wg *sync.WaitGroup, | ||
) error | ||
SendTeamReports( | ||
teamReports map[string]map[string]VulnerabilityReport, | ||
reportTime int64, | ||
reportTime time.Time, | ||
wg *sync.WaitGroup, | ||
) error | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters