Documentation ¶
Index ¶
- func DatabaseRowToFeed(row *sql.Row) (*gofeed.Feed, error)
- func DatabaseRowToFeedItem(row *sql.Row) (*gofeed.Item, error)
- func DatabaseRowsToFeedItems(rows *sql.Rows) ([]*gofeed.Item, error)
- func DatabaseRowsToFeeds(rows *sql.Rows) ([]*gofeed.Feed, error)
- func NewFRConfig(ck_cfg login.CookieConfig, url_cfg login.URLConfig) (login.Config, error)
- func NewFRCookieConfig() (login.CookieConfig, error)
- type FRConfig
- type FRCookieConfig
- type FeedReader
- func (fr *FeedReader) AddFeedForUser(u user.User, feed_url string) (*gofeed.Feed, error)
- func (fr *FeedReader) AddUser(u user.User) error
- func (fr *FeedReader) Config() login.Config
- func (fr *FeedReader) DumpFeedsForUser(u user.User, wr io.Writer) error
- func (fr *FeedReader) GetFeedByItemGUIDForUser(u user.User, guid string) (*gofeed.Feed, error)
- func (fr *FeedReader) GetFeedByLinkForUser(u user.User, link string) (*gofeed.Feed, error)
- func (fr *FeedReader) GetItemByGUIDForUser(u user.User, guid string) (*gofeed.Item, error)
- func (fr *FeedReader) GetUserByEmail(email string) (user.User, error)
- func (fr *FeedReader) GetUserById(id string) (user.User, error)
- func (fr *FeedReader) GetUserByUsername(name string) (user.User, error)
- func (fr *FeedReader) IndexFeed(feed *gofeed.Feed) error
- func (fr *FeedReader) IndexFeedForUser(u user.User, feed *gofeed.Feed) error
- func (fr *FeedReader) ListFeedsAll(feed_cb func(f *gofeed.Feed) error) error
- func (fr *FeedReader) ListFeedsAllForUser(u user.User, feed_cb func(f *gofeed.Feed) error) error
- func (fr *FeedReader) ListFeedsForUser(u user.User, pg_opts pagination.PaginatedOptions) (*FeedsResponse, error)
- func (fr *FeedReader) ListItemsForUser(u user.User, ls_opts *ListItemsOptions, pg_opts pagination.PaginatedOptions) (*ItemsResponse, error)
- func (fr *FeedReader) ParseFeedURL(feed_url string) (*gofeed.Feed, error)
- func (fr *FeedReader) PruneFeed(f *gofeed.Feed) error
- func (fr *FeedReader) RefreshFeed(feed *gofeed.Feed) error
- func (fr *FeedReader) RefreshFeedForUsers(f *gofeed.Feed) error
- func (fr *FeedReader) RefreshFeeds() error
- func (fr *FeedReader) RemoveFeedForUser(u user.User, f *gofeed.Feed) error
- func (fr *FeedReader) SearchForUser(u user.User, q string, opts pagination.PaginatedOptions) (*ItemsResponse, error)
- type FeedsResponse
- type ItemsResponse
- type ListItemsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFRConfig ¶
func NewFRCookieConfig ¶
func NewFRCookieConfig() (login.CookieConfig, error)
Types ¶
type FRCookieConfig ¶
type FRCookieConfig struct { login.CookieConfig // contains filtered or unexported fields }
func (*FRCookieConfig) Name ¶
func (c *FRCookieConfig) Name() string
func (*FRCookieConfig) Salt ¶
func (c *FRCookieConfig) Salt() string
func (*FRCookieConfig) Secret ¶
func (c *FRCookieConfig) Secret() string
type FeedReader ¶
type FeedReader struct { login.Provider // which implements user.UserDB // contains filtered or unexported fields }
func NewFeedReader ¶
func NewFeedReader(dsn string) (*FeedReader, error)
func (*FeedReader) AddFeedForUser ¶
func (*FeedReader) Config ¶
func (fr *FeedReader) Config() login.Config
func (*FeedReader) DumpFeedsForUser ¶
func (*FeedReader) GetFeedByItemGUIDForUser ¶
func (*FeedReader) GetFeedByLinkForUser ¶
func (*FeedReader) GetItemByGUIDForUser ¶
func (*FeedReader) GetUserByEmail ¶
func (fr *FeedReader) GetUserByEmail(email string) (user.User, error)
func (*FeedReader) GetUserById ¶
func (fr *FeedReader) GetUserById(id string) (user.User, error)
func (*FeedReader) GetUserByUsername ¶
func (fr *FeedReader) GetUserByUsername(name string) (user.User, error)
func (*FeedReader) IndexFeedForUser ¶
func (*FeedReader) ListFeedsAll ¶
func (fr *FeedReader) ListFeedsAll(feed_cb func(f *gofeed.Feed) error) error
func (*FeedReader) ListFeedsAllForUser ¶
func (*FeedReader) ListFeedsForUser ¶
func (fr *FeedReader) ListFeedsForUser(u user.User, pg_opts pagination.PaginatedOptions) (*FeedsResponse, error)
func (*FeedReader) ListItemsForUser ¶
func (fr *FeedReader) ListItemsForUser(u user.User, ls_opts *ListItemsOptions, pg_opts pagination.PaginatedOptions) (*ItemsResponse, error)
func (*FeedReader) ParseFeedURL ¶
func (fr *FeedReader) ParseFeedURL(feed_url string) (*gofeed.Feed, error)
func (*FeedReader) RefreshFeed ¶
func (fr *FeedReader) RefreshFeed(feed *gofeed.Feed) error
func (*FeedReader) RefreshFeedForUsers ¶
func (fr *FeedReader) RefreshFeedForUsers(f *gofeed.Feed) error
func (*FeedReader) RefreshFeeds ¶
func (fr *FeedReader) RefreshFeeds() error
func (*FeedReader) RemoveFeedForUser ¶
func (*FeedReader) SearchForUser ¶
func (fr *FeedReader) SearchForUser(u user.User, q string, opts pagination.PaginatedOptions) (*ItemsResponse, error)
type FeedsResponse ¶
type ItemsResponse ¶
type ListItemsOptions ¶
func NewDefaultListItemsOptions ¶
func NewDefaultListItemsOptions() *ListItemsOptions
Click to show internal directories.
Click to hide internal directories.