mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Use public models for config
This commit is contained in:
parent
6255456f61
commit
4a810f0692
3 changed files with 7 additions and 9 deletions
|
|
@ -11,10 +11,10 @@ package downloader
|
|||
import (
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"github.com/csaf-poc/csaf_distribution/v3/csaf/filter"
|
||||
"github.com/csaf-poc/csaf_distribution/v3/csaf/models"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
"regexp"
|
||||
"time"
|
||||
)
|
||||
|
||||
// ValidationMode specifies the strict the validation is.
|
||||
|
|
@ -36,8 +36,8 @@ type Config struct {
|
|||
ClientPassphrase *string
|
||||
Rate *float64
|
||||
Worker int
|
||||
Range *[2]time.Time
|
||||
IgnorePattern []*regexp.Regexp
|
||||
Range *models.TimeRange
|
||||
IgnorePattern filter.PatternMatcher
|
||||
ExtraHeader http.Header
|
||||
|
||||
RemoteValidator string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue