Apply gofmt
This commit is contained in:
parent
2a24abaa31
commit
52949d8ea3
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue