Documentation ¶
Index ¶
- Variables
- func AddCommands()
- func AddFlags()
- func CheckRecipeURLs(mongoUri string, urls []string) ([]string, error)
- func Execute(ver, commit string)
- func FilterArticlesBySubsection(articles []*m.Article, section string, subsection string) []*m.Article
- func FilterArticlesForRecipeExtraction(articles []*m.Article) []*m.Article
- func LoadArticleById(mongoUri string, articleId int) (*m.Article, error)
- func LoadArticles(mongoUri string) ([]*m.Article, error)
- func LoadRemoteArticles(url string) ([]*m.Article, error)
- func RunChartbeatCommands(beats []f.Beat)
- type GlobalConfig
- type RecipeStats
- type SummaryResponse
- type UniqueStringList
- type VerificationStats
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VERSION string COMMITHASH string NewsfetchCmd = &cobra.Command{Use: "newsfetch"} )
Functions ¶
func AddCommands ¶
func AddCommands()
func RunChartbeatCommands ¶
Types ¶
type GlobalConfig ¶
type RecipeStats ¶
type RecipeStats struct { RecipeCount int ArticlesWithoutRecipesCount int TotalURLsWithRecipesCount int URLsWithoutRecipes []string // contains filtered or unexported fields }
func (RecipeStats) String ¶
func (r RecipeStats) String() string
type SummaryResponse ¶
type UniqueStringList ¶
func (*UniqueStringList) Add ¶
func (u *UniqueStringList) Add(s string)
func (*UniqueStringList) AddList ¶
func (u *UniqueStringList) AddList(items []string)
type VerificationStats ¶
Click to show internal directories.
Click to hide internal directories.