ent

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	// Download connects to gnames database and downloads canonical forms of
	// names from sources that are considered to be 'reliable'.
	// Then it downloads generic names from the IRMNG project.
	// These files will be first preprocessed, than the data will be converted
	// to the output for gnfinder.
	Download(dat *data.Data) error
	// Close cleans up database connections.
	Close() error
}

type Output

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

func NewOutput

func NewOutput(cfg config.Config, sys Sys, dat *data.Data) (*Output, error)

func (*Output) Create

func (o *Output) Create() error

type Preproc

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

func NewPreproc

func NewPreproc(cfg config.Config, sys Sys, dat *data.Data) (*Preproc, error)

func (*Preproc) Preprocess

func (p *Preproc) Preprocess() error

type Sys

type Sys interface {
	Names() ([]string, error)
	Canonicals() ([]string, error)
	Genera() ([]string, error)
	ReadFile(path string) ([]string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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