feed

package
v0.0.0-...-161b0b8 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Unlicense Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	Feed    *rss.Feed
	Unread  uint32
	Read    uint32
	Visible bool
	Tags    []string
}

func Fetch

func Fetch(url string) (*Feed, error)

func (*Feed) GetItem

func (f *Feed) GetItem(pos int) *rss.Item

func (*Feed) GetUnreadItem

func (f *Feed) GetUnreadItem(pos int) *rss.Item

func (*Feed) HaveTag

func (f *Feed) HaveTag(tag string) bool

func (*Feed) ReadItem

func (f *Feed) ReadItem(item *rss.Item)

func (*Feed) Update

func (f *Feed) Update()

type Manager

type Manager struct {
	Feeds []*Feed
}

func (*Manager) Append

func (m *Manager) Append(f *Feed)

func (*Manager) Get

func (m *Manager) Get(idx int) *Feed

func (*Manager) GetVisibleFeed

func (m *Manager) GetVisibleFeed(pos int) *Feed

func (*Manager) Len

func (m *Manager) Len() int

func (*Manager) LenVisible

func (m *Manager) LenVisible() int

func (*Manager) New

func (m *Manager) New(url string) (*Feed, error)

func (*Manager) Update

func (m *Manager) Update()

Jump to

Keyboard shortcuts

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