// Package models holds the types the fetchers share. package models import "time" type ContentSource string const ( SourceTwitterAccount ContentSource = "X·Account" SourceTwitterSearch ContentSource = "X·Search" SourceYouTube ContentSource = "YouTube" SourceRSS ContentSource = "RSS" SourcePage ContentSource = "Page" // a new or updated page on the company's site SourceProduct ContentSource = "Product" // one of the company's products, from the profile ) // ContentItem is one fetched post, video or article. AppName is the // inventory entry it was fetched for. type ContentItem struct { ID string Source ContentSource Author string AuthorHandle string Title string Body string URL string PublishedAt time.Time AppName string }