Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIWriter ¶ added in v0.1.3
type APIWriter struct {
// contains filtered or unexported fields
}
The APIWriter is meant to write to a custom API and assumes many things. So currently, it is better not to use this APIWriter.
func NewAPIWriter ¶ added in v0.1.3
func NewAPIWriter(wc *WriterConfig) *APIWriter
NewAPIWriter returns a new APIWriter
type FileWriter ¶ added in v0.1.9
type FileWriter struct {
// contains filtered or unexported fields
}
func NewFileWriter ¶ added in v0.1.9
func NewFileWriter(wc *WriterConfig) *FileWriter
NewFileWriter returns a new FileWriter
type StdoutWriter ¶ added in v0.1.3
type StdoutWriter struct{}
type WriterConfig ¶ added in v0.2.1
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"` FilePath string `yaml:"filepath" env:"WRITER_FILEPATH"` }
.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.