Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CsvWriter ¶
type CsvWriter struct { FilePath string // contains filtered or unexported fields }
CsvWriter writes CSV files
func NewCsvWriter ¶
NewCsvWriter gets a new CsvWriter
type DbWriter ¶
type DbWriter struct { URI string // contains filtered or unexported fields }
DbWriter is a Database writer
func NewDbWriter ¶
NewDbWriter initialises a database writer
type JsonWriter ¶
type JsonWriter struct {
FilePath string
}
JsonWriter is a JSON lines writer
func NewJsonWriter ¶
func NewJsonWriter(destination string) (*JsonWriter, error)
NewJsonWriter return a new Json lines writer
type MemoryWriter ¶
type MemoryWriter struct {
// contains filtered or unexported fields
}
MemoryWriter is a memory-based results queue with a maximum slot count
func NewMemoryWriter ¶
func NewMemoryWriter(slots int) (*MemoryWriter, error)
NewMemoryWriter initializes a MemoryWriter with the specified number of slots
func (*MemoryWriter) GetAllResults ¶
func (s *MemoryWriter) GetAllResults() []*models.Result
GetAllResults returns a copy of all current results.
func (*MemoryWriter) GetFirst ¶
func (s *MemoryWriter) GetFirst() *models.Result
GetFirst retrieves the oldest result in the MemoryWriter.
func (*MemoryWriter) GetLatest ¶
func (s *MemoryWriter) GetLatest() *models.Result
GetLatest retrieves the most recently added result.
type NoneWriter ¶
type NoneWriter struct { }
NoneWriter is a None writer
func NewNoneWriter ¶
func NewNoneWriter() (*NoneWriter, error)
NewNoneWriter initialises a none writer
type StdoutWriter ¶
type StdoutWriter struct { }
StdoutWriter is a Stdout writer
func NewStdoutWriter ¶
func NewStdoutWriter() (*StdoutWriter, error)
NewStdoutWriter initialises a stdout writer