Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Writer WriterConfig `yaml:"writer"` Scrapers []scraper.Scraper `yaml:"scrapers"` }
Config defines the overall structure of the scraper configuration. Values will be taken from a config yml file or environment variables or both.
type WriterConfig ¶
type WriterConfig struct { Type string `yaml:"type" env:"WRITER_TYPE" env-default:"stdout"` Uri string `yaml:"uri" env:"WRITER_URI"` User string `yaml:"user" env:"WRITER_USER"` Password string `yaml:"password" env:"WRITER_PASSWORD"` }
.WriterConfig defines the necessary paramters to make a new writer which is responsible for writing the scraped data to a specific output eg. stdout.
Click to show internal directories.
Click to hide internal directories.