Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// CacheDir is a path to working directory. Files in this directory
// are cleaned up before each use of the app.
CacheDir string
// ImporterSrcDir is a path to a directory where source files are moved
// or extracted to.
ImporterSrcDir string
// ImporterSfgaDir is a path where SFGA database is created. When
// the database is ready it is exported to output file.
ImporterSfgaDir string
// DiffSrcDir is a path of a directory where the source SFGA file resides.
// This file is to be compared with the target SFGA file.
DiffSrcDir string
// DiffTrgDir is a path to a directory where the target SFGA file resides.
// This source SFGA file will be compared with the target file.
DiffTrgDir string
// DiffWorkDir contains data necessary for comparing data of source and
// target SFGA files. It can be a suffix trie data, bloom filter backup etc.
DiffWorkDir string
// DiffSourceTaxon defines a taxon in the source file that limits comparison
// to the children of the taxon.
DiffSourceTaxon string
// DiffTargetTaxon defines a taxon in the target file that limits comparison
// to the children of the taxon.
DiffTargetTaxon string
// BadRow sets how to process rows with wrong number of fields in CSV
// files. By default it is set to process such rows. Other options are
// to return an error, or skip them.
BadRow gnfmt.BadRow
// BatchSize determines the size of slices to import into SFGA.
BatchSize int
// WithoutQuotes can be used to parse faster tab- or pipe-delimited
// files where fields never escaped by quotes.
WithoutQuotes bool
// WithZipOutput indicates that zipped archives have to be created.
WithZipOutput bool
}
Config contains configuration data of the app.
type Option ¶
type Option func(*Config)
Option type is used for all options sent to the config file.
func OptCacheDir ¶
func OptDiffSourceTaxon ¶
func OptDiffTargetTaxon ¶
func OptWithZipOutput ¶
func OptWithoutQuotes ¶
Click to show internal directories.
Click to hide internal directories.