Documentation ¶
Index ¶
- Variables
- func AnalyticsMiddleware(h http.HandlerFunc) (http.HandlerFunc, error)
- func CompressContent(article readability.Article) ([]byte, error)
- func ConvertToReadabilityArticle(jsonArticle JSONArticle) readability.Article
- func DecompressContent(data []byte) (readability.Article, error)
- func WithUser(ctx context.Context, u *User) context.Context
- type Article
- type Cache
- type Edition
- type Element
- type HTTPPublisher
- type Homepage
- type JSONArticle
- type Layout
- type PubSubMessage
- type PubSubPublisher
- type Publisher
- type Source
- type User
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AnalyticsMiddleware ¶
func AnalyticsMiddleware(h http.HandlerFunc) (http.HandlerFunc, error)
func CompressContent ¶
func ConvertToReadabilityArticle ¶
func ConvertToReadabilityArticle(jsonArticle JSONArticle) readability.Article
func DecompressContent ¶
Types ¶
type Article ¶
type Article struct { ID string Title string Description string CompressedContent []byte Content readability.Article ImageURL string Link string Author string SourceID int64 Source Source Timestamp time.Time TS string LayoutID int64 Layout Layout // contains filtered or unexported fields }
func LayoutArticles ¶
func (*Article) SetHTMLContent ¶
type Cache ¶
type Edition ¶
type HTTPPublisher ¶
type JSONArticle ¶
type JSONArticle struct { Title string Byline string Content string TextContent string Length int Excerpt string SiteName string Image string Favicon string Language string PublishedTime *time.Time ModifiedTime *time.Time }
func ConvertToJSONArticle ¶
func ConvertToJSONArticle(article readability.Article) JSONArticle
type PubSubMessage ¶
type PubSubMessage struct { Message pubsub.Message `json:"message"` Subscription string `json:"subscription"` }
PubSubMessage is the payload of a Pub/Sub event.
type PubSubPublisher ¶
type PubSubPublisher struct {
// contains filtered or unexported fields
}
type Source ¶
type Source struct { ID string OwnerID string Name string URL string FeedURL string Categories []string DisableFetch bool LastFetchTime time.Time LayoutID string }
func GetSources ¶
func GetSources() []Source
Click to show internal directories.
Click to hide internal directories.