Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version of the gnverifier Version = "v1.3.0" // 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.
Click to show internal directories.
Click to hide internal directories.