Documentation
¶
Index ¶
- type Config
- type Option
- func OptInputDir(d string) Option
- func OptJobsNum(j int) Option
- func OptMyDB(d string) Option
- func OptMyHost(h string) Option
- func OptMyPass(p string) Option
- func OptMyUser(u string) Option
- func OptPgDB(d string) Option
- func OptPgHost(h string) Option
- func OptPgPass(p string) Option
- func OptPgUser(u string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// InputDir is a directory for temporary files and key-value stores.
InputDir string
// DumpDir is a directory to keep CSV dump files.
DumpDir string
// SciKVDir is a directory to keep key-value store for scientific names.
SciKVDir string
// VernKVDir is a directory to keep key-value store for vernacular names.
VernKVDir string
// JobsNum is a number of concurrent goroutines.
JobsNum int
// MyHost is a host name for MySQL.
MyHost string
// MyUser is a user name for MySQL.
MyUser string
// MyPass is a password for MySQL.
MyPass string
// MyDB is a database name for MySQL.
MyDB string
// PgHost is a host name for PostgreSQL.
PgHost string
// PgUser is a user name for PostgreSQL.
PgUser string
// PgPass is a password for PostgreSQL.
PgPass string
// PgDB is a database name for PostgreSQL.
PgDB string
// Curated is a list of data-sources IDs we consider to be curated by humans.
Curated []int
// AutoCurated is a list of data-sources IDs we consider to be curated by
// machines.
AutoCurated []int
// BatchSize is a number of records to be saved in one transaction.
BatchSize int
}
Config is a struct that holds configuration parameters for the package.
type Option ¶
type Option func(*Config)
Option type allows to change settings for Config.
func OptInputDir ¶
OptInputDir sets a directory for temporary files and key-value stores.
func OptJobsNum ¶
OptJobsNum sets parallelism number for concurrent goroutines.
Click to show internal directories.
Click to hide internal directories.