fetch

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

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

Go to latest
Published: Apr 5, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAndSaveRecipesForArticle

func DownloadAndSaveRecipesForArticle(mongoUrl string, article *m.Article) error

func DownloadAndSaveRecipesForArticles

func DownloadAndSaveRecipesForArticles(mongoUrl string, articles []*m.Article) error

func DownloadRecipesForArticle

func DownloadRecipesForArticle(article *m.Article) []*m.Recipe

func LoadAllRecipes

func LoadAllRecipes(mongoUri string) ([]*m.Recipe, error)

func SaveRecipes

func SaveRecipes(mongoUri string, recipes []*m.Recipe) error

Types

type DownloadRecipesResult

type DownloadRecipesResult struct {
	Recipes            []*m.Recipe
	URLs               []string
	URLsWithoutRecipes []string
}

func DownloadRecipesFromUrls

func DownloadRecipesFromUrls(urls []string) DownloadRecipesResult

Jump to

Keyboard shortcuts

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