Skip to content

Commit

Permalink
clean: go lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RayHuangCN committed Jun 23, 2022
1 parent 2354019 commit 76dc872
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/prom/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ global:
`
)

// ExtraConfig is config about kvass it self , not Prometheus config
type ExtraConfig struct {
// StopScrapeReason ,if not empty, all scrape will failed
StopScrapeReason string `json:"stopScrapeReason"`
}

// EQ return true if all ExtraConfig fields is eq
func (c *ExtraConfig) EQ(e *ExtraConfig) bool {
return c.StopScrapeReason == e.StopScrapeReason
}
Expand Down

0 comments on commit 76dc872

Please sign in to comment.