aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/options/options.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/options/options.go b/internal/options/options.go
index c988713..a567b0e 100644
--- a/internal/options/options.go
+++ b/internal/options/options.go
@@ -17,6 +17,8 @@ type Options struct {
MaxResponse int64
// Health and metrics
+ CheckerDomain string
+ CheckerInterval time.Duration
MetricsInterval time.Duration
}
@@ -29,6 +31,8 @@ func Parse() (opts Options) {
flag.DurationVar(&opts.Timeout, "t", 10*time.Second, "timeout for each website visit")
flag.Int64Var(&opts.MaxResponse, "r", 128, "max response body size to accept in MiB")
+ flag.StringVar(&opts.CheckerDomain, "c", "rgdd.se", "domain with onion location for setup santity-checks")
+ flag.DurationVar(&opts.CheckerInterval, "C", 10*time.Second, "how often to to run checker")
flag.DurationVar(&opts.MetricsInterval, "m", 5*time.Second, "how often to emit metrics")
flag.Parse()