From d6487933c758be647bff7a568d6a33e6155e6599 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 10 Jan 2023 15:19:05 +0100 Subject: [feature] Implement Report database model and utility functions (#1310) * implement report database model * implement report cache + config changes * implement report database functions * report uri / regex functions * update envparsing test * remove unnecessary uri index * remove unused function + cache lookup * process error when storing report --- internal/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/config/config.go') diff --git a/internal/config/config.go b/internal/config/config.go index 107a94285..ec8675f2d 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -175,6 +175,10 @@ type GTSCacheConfiguration struct { NotificationTTL time.Duration `name:"notification-ttl"` NotificationSweepFreq time.Duration `name:"notification-sweep-freq"` + ReportMaxSize int `name:"report-max-size"` + ReportTTL time.Duration `name:"report-ttl"` + ReportSweepFreq time.Duration `name:"report-sweep-freq"` + StatusMaxSize int `name:"status-max-size"` StatusTTL time.Duration `name:"status-ttl"` StatusSweepFreq time.Duration `name:"status-sweep-freq"` -- cgit v1.2.3