chore(monitor): gofmt const-block alignment in phase-2 collectors
This commit is contained in:
parent
0027de6c72
commit
d352a6bce6
|
|
@ -16,14 +16,14 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
defaultCFBaseURL = "https://api.cloudflare.com"
|
||||
defaultCFRate = 250 * time.Millisecond
|
||||
defaultCFBurst = 5
|
||||
defaultCFBudget = 5
|
||||
defaultCFBreaker = 60 * time.Second
|
||||
pathRadarOutages = "/client/v4/radar/annotations/outages"
|
||||
pathRadarHijacks = "/client/v4/radar/bgp/hijacks/events"
|
||||
defaultDateRange = "1d"
|
||||
defaultCFBaseURL = "https://api.cloudflare.com"
|
||||
defaultCFRate = 250 * time.Millisecond
|
||||
defaultCFBurst = 5
|
||||
defaultCFBudget = 5
|
||||
defaultCFBreaker = 60 * time.Second
|
||||
pathRadarOutages = "/client/v4/radar/annotations/outages"
|
||||
pathRadarHijacks = "/client/v4/radar/bgp/hijacks/events"
|
||||
defaultDateRange = "1d"
|
||||
)
|
||||
|
||||
type ClientConfig struct {
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
Name = "cve"
|
||||
defaultCVEInterval = 2 * time.Hour
|
||||
defaultCVEWindow = 2 * time.Hour
|
||||
Name = "cve"
|
||||
defaultCVEInterval = 2 * time.Hour
|
||||
defaultCVEWindow = 2 * time.Hour
|
||||
)
|
||||
|
||||
type NVDFetcher interface {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
Name = "ransomware"
|
||||
defaultRansomCadence = 15 * time.Minute
|
||||
Name = "ransomware"
|
||||
defaultRansomCadence = 15 * time.Minute
|
||||
)
|
||||
|
||||
type Fetcher interface {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ import (
|
|||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/httpx"
|
||||
)
|
||||
|
||||
|
||||
const (
|
||||
defaultGNBaseURL = "https://api.greynoise.io"
|
||||
pathCommunityLookup = "/v3/community/"
|
||||
|
|
|
|||
Loading…
Reference in New Issue