feed

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	FeedTitle string `json:"feedTitle,omitempty"`
	FeedImage string `json:"feedImage,omitempty"`

	Title       string            `json:"title,omitempty"`
	Description string            `json:"description,omitempty"`
	Content     string            `json:"content,omitempty"`
	Link        string            `json:"link,omitempty"`
	Links       []string          `json:"links,omitempty"`
	Updated     int64             `json:"updated,omitempty"`
	Published   int64             `json:"published,omitempty"`
	Image       string            `json:"image,omitempty"`
	Categories  []string          `json:"categories,omitempty"`
	Custom      map[string]string `json:"custom,omitempty"`
}

Item represents a single item in a feed. It is similar to the Item struct from the gofeed package, but contains some additional fields from the Feed struct and omit fields which we do not use.

func Transform

func Transform(feeds []*gofeed.Feed, sortBy string) []Item

Transform is used to convert the returned feeds from the gofeed package into a list of items.

Jump to

Keyboard shortcuts

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