Documentation ¶
Index ¶
- type Config
- type Option
- func OptGNPort(i int) Option
- func OptJobsNum(i int) Option
- func OptMatcherURL(s string) Option
- func OptMaxEditDist(i int) Option
- func OptPgDB(s string) Option
- func OptPgHost(s string) Option
- func OptPgPass(s string) Option
- func OptPgPort(i int) Option
- func OptPgUser(s string) Option
- func OptWorkDir(s string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GNport int WorkDir string JobsNum int MaxEditDist int PgHost string PgPort int PgUser string PgPass string PgDB string MatcherURL string }
Config collects and stores external configuration data.
func New ¶ added in v0.5.0
New is a Config constructor that takes external options to update default values to external ones.
func (Config) FiltersDir ¶
FiltersDir returns path where to dump/restore serialized bloom filters.
type Option ¶
type Option func(cnf *Config)
Option is a type of all options for Config.
func OptJobsNum ¶
OptJobsNum sets number of concurrent jobs to run for parallel tasks.
func OptMatcherURL ¶
OptMatcherURL sets the name of gnames database
func OptMaxEditDist ¶
OptMaxEditDist sets maximal possible edit distance for fuzzy matching of stemmed canonical forms.
func OptWorkDir ¶
OptWorkDir sets a directory for key-value stores and temporary files.
Click to show internal directories.
Click to hide internal directories.