Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScraperRegistry ¶
ScraperRegistry is a struct which which contains a collection of Scrapers. This collection can then be filtered/iterated over to retrieve only the scrapers that should be active for the exporter.
var ( // Registry is where all scrapers will be registered to. Registry ScraperRegistry )
func (*ScraperRegistry) Add ¶
func (sr *ScraperRegistry) Add(s *types.Scraper)
Add appends a Scraper to the Scrapers slice on the registry.
func (*ScraperRegistry) GetActiveScrapers ¶
func (sr *ScraperRegistry) GetActiveScrapers(config *config.Config) []*types.Scraper
GetActiveScrapers iterates through the Scrapers slice and returns only those which are not disabled by the config passed to the exporter at initialization.
Click to show internal directories.
Click to hide internal directories.