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)
|
loglist.UserAgent = fmt.Sprintf("certspotter/%s (%s; %s; %s)", certspotterVersion(), runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
||||||
|
|
||||||
var flags struct {
|
var flags struct {
|
||||||
batchSize int // TODO-4: respect this option
|
batchSize int // TODO-4: respect this option
|
||||||
email []string
|
email []string
|
||||||
healthcheck time.Duration
|
healthcheck time.Duration
|
||||||
logs string
|
logs string
|
||||||
noSave bool
|
noSave bool
|
||||||
script string
|
script string
|
||||||
startAtEnd bool
|
startAtEnd bool
|
||||||
stateDir string
|
stateDir string
|
||||||
stdout bool
|
stdout bool
|
||||||
verbose bool
|
verbose bool
|
||||||
version bool
|
version bool
|
||||||
watchlist string
|
watchlist string
|
||||||
}
|
}
|
||||||
flag.IntVar(&flags.batchSize, "batch_size", 1000, "Max number of entries to request per call to get-entries (advanced)")
|
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))
|
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{
|
config := &monitor.Config{
|
||||||
LogListSource: flags.logs,
|
LogListSource: flags.logs,
|
||||||
StateDir: flags.stateDir,
|
StateDir: flags.stateDir,
|
||||||
SaveCerts: !flags.noSave,
|
SaveCerts: !flags.noSave,
|
||||||
StartAtEnd: flags.startAtEnd,
|
StartAtEnd: flags.startAtEnd,
|
||||||
Verbose: flags.verbose,
|
Verbose: flags.verbose,
|
||||||
Script: flags.script,
|
Script: flags.script,
|
||||||
Email: flags.email,
|
Email: flags.email,
|
||||||
Stdout: flags.stdout,
|
Stdout: flags.stdout,
|
||||||
HealthCheckInterval: flags.healthcheck,
|
HealthCheckInterval: flags.healthcheck,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,14 +14,14 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
LogListSource string
|
LogListSource string
|
||||||
StateDir string
|
StateDir string
|
||||||
StartAtEnd bool
|
StartAtEnd bool
|
||||||
WatchList WatchList
|
WatchList WatchList
|
||||||
Verbose bool
|
Verbose bool
|
||||||
SaveCerts bool
|
SaveCerts bool
|
||||||
Script string
|
Script string
|
||||||
Email []string
|
Email []string
|
||||||
Stdout bool
|
Stdout bool
|
||||||
HealthCheckInterval time.Duration
|
HealthCheckInterval time.Duration
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue