gnverifier

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version of the gnverifier
	Version = "v1.1.8"
	// Build timestamp
	Build string
)

Functions

This section is empty.

Types

type GNverifier

type GNverifier interface {
	// VerifyOne takes a name-string and returns the result of verification.
	VerifyOne(name string) (vlib.Name, error)

	// VerifyBatch takes a slice of names and verifies them all at once
	VerifyBatch(ctx context.Context, names []string) []vlib.Name

	// VerifyStream receves batches of strings via one channel, verifies
	// the strings and sends results to another channel.
	VerifyStream(ctx context.Context, in <-chan []string, out chan []vlib.Name)

	// Search provides faceted search functionality.
	Search(ctx context.Context, srch search.Input) ([]vlib.Name, error)

	// ChangeConfig modifies configuration of GNverifier.
	ChangeConfig(opts ...config.Option) GNverifier

	// Config returns  configuration data.
	Config() config.Config

	// DataSources returns information about Data Sources harvested for
	// verification.
	DataSources() ([]vlib.DataSource, error)

	// DataSource uses ID input to return meta-information about a particular
	// data-source.
	DataSource(id int) (vlib.DataSource, error)

	// NameString finds verification data by either name-string itself, or
	// its UUID.
	NameString(vlib.NameStringInput) (vlib.NameStringOutput, error)

	// GetVersion returns version of the gnverifier
	GetVersion() gnvers.Version
}

GNverifier is the use-case interface of the gnverifier app. It determines methods needed to verify (reconcile/resolve) strings to scientific names.

func New

func New(
	cfg config.Config,
	vfr verifier.Verifier,
) GNverifier

New constructs an object that implements GNVerifier interface and can be used for matching strings to scientfic names.

Directories

Path Synopsis
ent
verifier/verifiertesting
Code generated by counterfeiter.
Code generated by counterfeiter.
io
web

Jump to

Keyboard shortcuts

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