Documentation ¶
Index ¶
- func PublishedAt(ss []string) time.Time
- func Sum(data []byte) string
- type Alias
- type Cache
- func (c Cache) Close()
- func (c Cache) Expire(url string, seconds int)
- func (c Cache) Flush()
- func (c Cache) GetFeeds(urls []string) (map[string]*json.RawMessage, []string)
- func (c Cache) Set(url string, value string)
- func (c Cache) SetAlias(alias string, original string)
- func (c Cache) SetFeed(url string, feed *Feed)
- type Feed
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublishedAt ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
type Feed ¶
type Feed struct { ID int `json:"-"` Title string `json:"title"` URL string `json:"url" sql:"unique_index"` Items []Item `json:"items"` Sum string `json:"-" sql:"index"` NextPollAt time.Time `json:"next_poll_at" sql:"index"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"updated_at"` }
func NewFeedFromAtom ¶
func NewFeedFromRSS ¶
func NewFeedFromUnknown ¶
Click to show internal directories.
Click to hide internal directories.