Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // RootPath is the root path for all temporary files. RootPath string // DownloadPath is used to store downloaded files. DownloadPath string // ExtractPath is used to store extracted files of DwCA archive. ExtractPath string // OutputPath is used to store uncompressed files of a normalized // DwCA archive. This files are created from the original DwCA archive // data. OutputPath string // OutputArchiveCompression is the compression format to use when // creating the output archive. It can be "zip" or "tar.gz". OutputArchiveCompression string // OutputCSVType is the type of CSV files. Can be "csv" or "tsv" OutputCSVType string // JobsNum is the number of concurrent jobs to run. JobsNum int // WithSloppyCSV allows to have more fields in a row, than it should have. WithSloppyCSV bool }
Config is a configuration object for the Darwin Core Archive (DwCA) data processing.
type Option ¶
type Option func(*Config)
Option is a function type that allows to standardize how options to the configuration are organized.
func OptArchiveCompression ¶
OptOutputArchiveCompression sets the compression format to use when creating the output archive. It can be "zip" or "tar.gz".
func OptJobsNum ¶
OptJobsNum sets the number of concurrent jobs to run.
func OptOutputCSVType ¶
OptOutputCSVType sets the type of CSV files. Can be "csv" or "tsv"
func OptRootPath ¶
OptRootPath sets the root path for all temporary files.
func OptWithSloppyCSV ¶ added in v0.2.9
Click to show internal directories.
Click to hide internal directories.