minor signature change

This commit is contained in:
Mzack9999 2022-10-24 10:00:54 +02:00
parent 3fe1cc2268
commit a90e5a140c

View File

@ -34,6 +34,9 @@ const (
var defaultProviders = strings.Join(cdncheck.GetDefaultProviders(), ", ")
// OnResultCallback (hostResult)
type OnResultCallback func(Result)
type scanOptions struct {
Methods []string
StoreResponseDirectory string
@ -244,7 +247,7 @@ type Options struct {
OutputMatchResponseTime string
OutputFilterResponseTime string
HealthCheck bool
OnResult func(result Result)
OnResult OnResultCallback
}
// ParseOptions parses the command line options for application