Documentation
¶
Overview ¶
Package reader implements the RSS/feed reading capability.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Descriptor ¶
func Descriptor(backend, app string, svc Service) hub.Descriptor
func RegisterService ¶
RegisterService registers the reader capability with the hub and ability registry. It returns nil and logs a warning when svc is nil (provider not configured).
Types ¶
type EntryQuery ¶
type EntryQuery struct {
Page ability.PageRequest
Status string
FeedID int64
}
type FeedQuery ¶
type FeedQuery struct {
Page ability.PageRequest
}
type Service ¶
type Service interface {
ListFeeds(ctx context.Context, q *FeedQuery) (*ability.ListResult[ability.Feed], error)
CreateFeed(ctx context.Context, feedURL string) (*ability.Feed, error)
ListEntries(ctx context.Context, q *EntryQuery) (*ability.ListResult[ability.Entry], error)
MarkEntryRead(ctx context.Context, id int64) error
MarkEntryUnread(ctx context.Context, id int64) error
StarEntry(ctx context.Context, id int64) error
UnstarEntry(ctx context.Context, id int64) error
}
Click to show internal directories.
Click to hide internal directories.