dictionaries

package
v0.0.0-...-8a157eb Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package dictionaries implements an Ingest for supporting files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitBrandedFoodGroupInfoMap

func InitBrandedFoodGroupInfoMap(il []interface{}) map[string]fdc.FoodGroup

InitBrandedFoodGroupInfoMap creates a map for FGGPC documents

func InitDerivationInfoMap

func InitDerivationInfoMap(il []interface{}) map[uint]fdc.Derivation

InitDerivationInfoMap creates a map from DERV documents in the data store.

func InitFoodGroupInfoMap

func InitFoodGroupInfoMap(il []interface{}) map[uint]fdc.FoodGroup

InitFoodGroupInfoMap creates a map from FGSR or FGFNDDS documents in the data store

func InitNutrientInfoMap

func InitNutrientInfoMap(il []interface{}) map[uint]fdc.Nutrient

InitNutrientInfoMap creates a map from NUT documents in the data store.

Types

type Dictionary

type Dictionary struct {
	Dt fdc.DocType
}

Dictionary for implementing the interface

func (Dictionary) ProcessFiles

func (p Dictionary) ProcessFiles(path string, dc ds.DataSource, bucket string) error

ProcessFiles implements an Ingest of Dictionary objects

Jump to

Keyboard shortcuts

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