builder

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFeedID

func GetFeedID(url string) string

GetFeedID converts URL to feed ID (HASH)

func GetFeedTags

func GetFeedTags(tags *string) []string

GetFeedTags extracts tags from a comma separated list of tags

func JoinTags added in v1.1.0

func JoinTags(tags ...string) string

JoinTags join tags in a comma separated string

func NewArticle

func NewArticle(feed *app.Feed, item *gofeed.Item) *model.Article

NewArticle creates a new article from a feed item

func NewArticles

func NewArticles(feed *app.Feed, items []*gofeed.Item) []*model.Article

NewArticles creates a new array of articles from an array of feed item

func NewFeed

func NewFeed(url string, tags *string) (*app.Feed, error)

NewFeed creates new Feed DTO

Types

type CustomAtomTranslator

type CustomAtomTranslator struct {
	// contains filtered or unexported fields
}

CustomAtomTranslator is a custom GoFeed Atom translator created to extract Hub link.

func NewCustomAtomTranslator

func NewCustomAtomTranslator() *CustomAtomTranslator

NewCustomAtomTranslator creates nes custom GoFeed Atom translator.

func (*CustomAtomTranslator) Translate

func (ct *CustomAtomTranslator) Translate(feed interface{}) (*gofeed.Feed, error)

Translate Atom feed into generic feed and extract Hub link if present.

type CustomRSSTranslator

type CustomRSSTranslator struct {
	// contains filtered or unexported fields
}

CustomRSSTranslator is a custom GoFeed RSS translator created to extract Hub link.

func NewCustomRSSTranslator

func NewCustomRSSTranslator() *CustomRSSTranslator

NewCustomRSSTranslator creates nes custom GoFeed RSS translator.

func (*CustomRSSTranslator) Translate

func (ct *CustomRSSTranslator) Translate(feed interface{}) (*gofeed.Feed, error)

Translate RSS feed into generic feed and extract Hub link if present.

Jump to

Keyboard shortcuts

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