model

package
v0.0.0-...-6370e37 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2017 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedMeDB

type RedMeDB struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewRedMeDBConn

func NewRedMeDBConn(path string) (*RedMeDB, error)

func (*RedMeDB) AddFeed

func (r *RedMeDB) AddFeed(f *RedMeFeed) error

func (*RedMeDB) AddPost

func (r *RedMeDB) AddPost(f *RedMeFeed, i *rss.Item) error

func (*RedMeDB) GetAllFeeds

func (r *RedMeDB) GetAllFeeds() ([]*RedMeFeed, error)

func (*RedMeDB) GetAllUnreadPosts

func (r *RedMeDB) GetAllUnreadPosts() ([]*RedMePost, error)

func (*RedMeDB) MarkAllPostsRead

func (r *RedMeDB) MarkAllPostsRead(id string) error

type RedMeFeed

type RedMeFeed struct {
	Filters []string
	Feed    *rss.Feed
	// contains filtered or unexported fields
}

func NewRedMeFeed

func NewRedMeFeed(url string, filters []string) (*RedMeFeed, error)

type RedMePost

type RedMePost struct {
	Id        int
	Item      *rss.Item
	FeedTitle string
	Date      string
}

Jump to

Keyboard shortcuts

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