zgrab2/bin/summary.go
David Adrian 8427a23db1
Add support for importing the ZGrab2 main (#224)
Move ZGrab2's main function to a library, and call it in cmd/zgrab2
after importing all of our modules. Consumes of ZGrab2 as a library can
use the same approach to provide custom sets of modules, without having
to hack the build system or reimplement main.

https://github.com/zmap/zgrab2/pull/224
2019-09-25 08:51:31 -04:00

12 lines
368 B
Go

package bin
import "github.com/zmap/zgrab2"
// Summary holds the results of a run of a ZGrab2 binary.
type Summary struct {
StatusesPerModule map[string]*zgrab2.State `json:"statuses"`
StartTime string `json:"start"`
EndTime string `json:"end"`
Duration string `json:"duration"`
}