output

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSVHeader

func CSVHeader(f gnfmt.Format) string

CSVHeader returns the header string for CSV output format.

func MatchOutput

func MatchOutput(o Output, f gnfmt.Format) string

NameOutput takes result of verification for one string and converts it into required format (CSV or JSON).

Types

type Match

type Match struct {
	QueryRecord      record.Record   `json:"queryRecord"`
	ReferenceRecords []record.Record `json:"referenceRecords"`
}

type Metadata added in v0.3.0

type Metadata struct {
	TimeTotalSec  float64 `json:"timeTotalSec"`
	TimeIngestSec float64 `json:"timeIngestSec"`
	TimeQuerySec  float64 `json:"timeQuerySec"`
}

type Output

type Output struct {
	Metadata `json:"metadata"`
	Matches  []Match
}

Jump to

Keyboard shortcuts

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