Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromTimestampPb ¶
func FromTimestampPb(pb *timestamppb.Timestamp) *time.Time
Types ¶
type Entry ¶
type Entry struct { ID ID FeedID ID Title string IsRead bool IsBookmarked bool ExtID string Updated *time.Time Published *time.Time Description *string Content *string URL *string }
func FromEntryPb ¶
type EntryEditOp ¶
type EntryNotFoundError ¶
type EntryNotFoundError struct{ ID any }
func (EntryNotFoundError) Error ¶
func (e EntryNotFoundError) Error() string
type Feed ¶
type Feed struct { ID ID Title string Description *string FeedURL string SiteURL *string Subscribed time.Time LastPulled time.Time Updated *time.Time IsStarred bool Tags []string Entries map[ID]*Entry }
func FromFeedPb ¶
func FromFeedPbs ¶
func (*Feed) EntriesSlice ¶
EntriesSlice returns a slice of entries sorted by read status (unread first), update date (oldest first), and published date (oldest first).
func (*Feed) NumEntriesRead ¶
func (*Feed) NumEntriesTotal ¶
func (*Feed) NumEntriesUnread ¶
type FeedEditOp ¶
type FeedNotFoundError ¶
type FeedNotFoundError struct{ ID any }
func (FeedNotFoundError) Error ¶
func (e FeedNotFoundError) Error() string
type PullResult ¶
type PullResult struct {
// contains filtered or unexported fields
}
PullResult is a container for a pull operation.
func NewPullResultFromError ¶
func NewPullResultFromError(url *string, err error) PullResult
func NewPullResultFromFeed ¶
func NewPullResultFromFeed(url *string, feed *Feed) PullResult
func (PullResult) Error ¶
func (msg PullResult) Error() error
func (PullResult) Feed ¶
func (msg PullResult) Feed() *Feed
func (*PullResult) SetError ¶
func (msg *PullResult) SetError(err error)
func (*PullResult) SetStatus ¶
func (msg *PullResult) SetStatus(status PullStatus)
func (PullResult) URL ¶
func (msg PullResult) URL() string
type Stats ¶
type Stats struct { NumFeeds uint32 NumEntries uint32 NumEntriesUnread uint32 LastPullTime *time.Time MostRecentUpdateTime *time.Time }
func FromStatsPb ¶
func FromStatsPb(pb *api.GetStatsResponse_Stats) *Stats
type Subscription ¶
func NewSubscriptionFromOPML ¶
func NewSubscriptionFromOPML(doc *opml.Doc) (*Subscription, error)
func NewSubscriptionFromRawOPML ¶
func NewSubscriptionFromRawOPML(payload []byte) (*Subscription, error)
func (*Subscription) Export ¶
func (sub *Subscription) Export() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.