ingest

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: 1 Imported by: 0

Documentation

Overview

Package ingest provides the Ingest interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counts

type Counts struct {
	Foods     int `json:"foods"`
	Servings  int `json:"servings"`
	Nutrients int `json:"nutrients"`
	Other     int `json:"other"`
}

Counts holds counts for documents loaded during an ingest process

type Ingest

type Ingest interface {
	ProcessFiles(path string, dc ds.DataSource, bucket string) error
}

Ingest wraps the basic methods used for loading different Food Data Central documents, i.e. Branded Foods, Standard release legacy, , Nutrients, etc..

Directories

Path Synopsis
Package bfpd implements an Ingest for Branded Food Products.
Package bfpd implements an Ingest for Branded Food Products.
Package dictionaries implements an Ingest for supporting files
Package dictionaries implements an Ingest for supporting files
Package fndds implements an Ingest for Food Survey data
Package fndds implements an Ingest for Food Survey data
Package sr implements an Ingest for Standard Release Legacy foods
Package sr implements an Ingest for Standard Release Legacy foods

Jump to

Keyboard shortcuts

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