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