diff --git a/cmd/certspotter/main.go b/cmd/certspotter/main.go index 879bef5..be69607 100644 --- a/cmd/certspotter/main.go +++ b/cmd/certspotter/main.go @@ -108,18 +108,18 @@ func main() { loglist.UserAgent = fmt.Sprintf("certspotter/%s (%s; %s; %s)", certspotterVersion(), runtime.Version(), runtime.GOOS, runtime.GOARCH) var flags struct { - batchSize int // TODO-4: respect this option - email []string + batchSize int // TODO-4: respect this option + email []string healthcheck time.Duration - logs string - noSave bool - script string - startAtEnd bool - stateDir string - stdout bool - verbose bool - version bool - watchlist string + logs string + noSave bool + script string + startAtEnd bool + stateDir string + stdout bool + verbose bool + version bool + watchlist string } flag.IntVar(&flags.batchSize, "batch_size", 1000, "Max number of entries to request per call to get-entries (advanced)") flag.Func("email", "Email address to contact when matching certificate is discovered (repeatable)", appendFunc(&flags.email)) @@ -146,14 +146,14 @@ func main() { } config := &monitor.Config{ - LogListSource: flags.logs, - StateDir: flags.stateDir, - SaveCerts: !flags.noSave, - StartAtEnd: flags.startAtEnd, - Verbose: flags.verbose, - Script: flags.script, - Email: flags.email, - Stdout: flags.stdout, + LogListSource: flags.logs, + StateDir: flags.stateDir, + SaveCerts: !flags.noSave, + StartAtEnd: flags.startAtEnd, + Verbose: flags.verbose, + Script: flags.script, + Email: flags.email, + Stdout: flags.stdout, HealthCheckInterval: flags.healthcheck, } diff --git a/monitor/config.go b/monitor/config.go index 47b404c..552335f 100644 --- a/monitor/config.go +++ b/monitor/config.go @@ -14,14 +14,14 @@ import ( ) type Config struct { - LogListSource string - StateDir string - StartAtEnd bool - WatchList WatchList - Verbose bool - SaveCerts bool - Script string - Email []string - Stdout bool + LogListSource string + StateDir string + StartAtEnd bool + WatchList WatchList + Verbose bool + SaveCerts bool + Script string + Email []string + Stdout bool HealthCheckInterval time.Duration }