gnresolve

package module
v0.0.0-...-5e5cbe5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 9 Imported by: 0

README

gnresolve

Takes unique list of names, one per line, and writes down verification of these names into csv file

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GNresolve

type GNresolve struct {
	// InputPath gives path to a file with an input data. The file should
	// contain name-strings separated by new lines.
	InputPath string
	// OutputPath gives path to a directory to keep output data.
	OutputPath string
	// JobsNum sets number of jobs/workers to run.
	JobsNum int
	// ProgressNum determines how many titles should be processed for
	// a progress report.
	ProgressNum int
}

func NewGNresolve

func NewGNresolve(opts ...Option) (GNresolve, error)

func (GNresolve) Run

func (r GNresolve) Run() error

type Option

type Option func(r *GNresolve)

func OptInput

func OptInput(s string) Option

OptIntput is an absolute path to input data file. Each line of such file displays path to zipped file of a title.

func OptJobs

func OptJobs(i int) Option

OptJobs sets number of jobs/workers to run duing execution.

func OptOutput

func OptOutput(s string) Option

OptOutput is an absolute path to a directory where results will be written. If such directory does not exist already, it will be created during initialization of HTindex instance.

func OptProgressNum

func OptProgressNum(i int) Option

OptProgressNum sets how often to printout a line about the progress. When it is set to 1 report line appears after processing every title, and if it is 10 progress is shows after every 10th title.

type Verification

type Verification struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL