Commit Graph

6 Commits

Author SHA1 Message Date
David Adrian
178d984996 Fix synchronization for Monitor
The goroutine running the monitor isn't actually closed. This PR updates
the API to allow that Goroutine to properly block program exit. This can
be leveraged as we continue to make the configuration non-global.
2020-02-18 14:57:46 -05:00
David Adrian
6848e3ae60 Remove reference to global config in monitor.go
This updates MakeMonitor() to take the channel size as a parameter,
instead of reading it from the global `config` object. Unfortunately,
the caller of MakeMonitor() doesn't actually have access to the global,
since it's in a different package (bin vs the root package). Luckily,
there doesn't appear to be a reason to have a buffer in this channel.
This updates the caller to pass a hardcoded size of 1.
2020-02-18 13:43:19 -05:00
Justin Bastress
531ba31c34 Add memory and CPU profiling (if ZGRAB_[MEM/CPU]PROFILE is set); add upper bound on data read from postgres 2018-05-14 11:24:25 -04:00
Alex
3545d223e9 gofmt, golint, add docs 2017-10-03 23:57:56 -04:00
Alex
6d926d2568 make zgrab2 great again, allow ability to scan multiple of same modules (mods to zflags as well), monitor now supports monitoring all modules, start of metadata implementation 2017-08-25 12:04:16 -04:00
Alex
41eb0fd7d4 refactor structure, monitor, modules (further work to be done on modules) 2017-08-16 12:09:20 -04:00