Documentation ¶
Index ¶
Constants ¶
View Source
const ( FormatRDF = "rdf" FormatRSS = "rss" FormatAtom = "atom" FormatJSON = "json" FormatUnknown = "unknown" )
List of feed formats.
Variables ¶
This section is empty.
Functions ¶
func DetectFeedFormat ¶
DetectFeedFormat detect feed format from input data.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler contains all the logic to create and refresh feeds.
func NewFeedHandler ¶
func NewFeedHandler(store *storage.Storage, translator *locale.Translator) *Handler
NewFeedHandler returns a feed handler.
func (*Handler) CreateFeed ¶
func (h *Handler) CreateFeed(userID, categoryID int64, url string, crawler bool) (*model.Feed, error)
CreateFeed fetch, parse and store a new feed.
func (*Handler) RefreshFeed ¶
RefreshFeed fetch and update a feed if necessary.
Click to show internal directories.
Click to hide internal directories.