refs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	NameString       string       `json:"name_string"`
	Canonical        string       `json:"canonical,omitempty"`
	CurrentCanonical string       `json:"current_canonical,omitempty"`
	ReferenceNumber  int          `json:"refs_num"`
	References       []*Reference `json:"references,omitempty"`
}

type PreReference

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

type Reference

type Reference struct {
	YearAggr           int    `json:"year_aggr"`
	YearType           string `json:"year_type"`
	URL                string `json:"url,omitempty"`
	TitleDOI           string `json:"doi_title,omitempty"`
	PartDOI            string `json:"doi_part,omitempty"`
	Name               string `json:"name"`
	MatchName          string `json:"match_name"`
	EditDistance       int    `json:"edit_distance,omitempty"`
	PageID             int    `json:"page_id"`
	ItemID             int    `json:"item_id"`
	TitleID            int    `json:"title_id"`
	PartID             int    `json:"part_id,omitempty"`
	TitleName          string `json:"title_name"`
	Volume             string `json:"volume,omitempty"`
	PartPages          string `json:"part_pages,omitempty"`
	PartName           string `json:"part_name,omitempty"`
	ItemKingdom        string `json:"item_kingdom"`
	ItemKingdomPercent int    `json:"item_kingdom_percent"`
	StatNamesNum       int    `json:"stat_names_num"`
	ItemContext        string `json:"item_context"`
	TitleYearStart     int    `json:"title_year_start"`
	TitleYearEnd       int    `json:"title_year_end,omitempty"`
	ItemYearStart      int    `json:"item_year_start,omitempty"`
	ItemYearEnd        int    `json:"item_year_end,omitempty"`
}

type Refs

type Refs struct {
	PartDir    string
	JobsNum    int
	SortDesc   bool
	Short      bool
	NoSynonyms bool
	DB         *sql.DB
	GormDB     *gorm.DB
}

func NewRefs

func NewRefs(dbOpts db.DbOpts, md bhl.MetaData, jobs int, sortDesc,
	short, noSynonyms bool) Refs

func (Refs) Output

func (r Refs) Output(gnp gnparser.GNparser, kv *badger.DB,
	name string) *Output

func (Refs) RefsWorker

func (r Refs) RefsWorker(kv *badger.DB, chIn <-chan string,
	chOut chan<- *RefsResult,
	wg *sync.WaitGroup)

type RefsResult

type RefsResult struct {
	Output *Output
	Error  error
}

type Row

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

Jump to

Keyboard shortcuts

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