Documentation
¶
Index ¶
- type FavouriteStore
- func (f *FavouriteStore) Close()
- func (f *FavouriteStore) Delete(ctx context.Context, id uuid.UUID) error
- func (f *FavouriteStore) List(ctx context.Context, filterExpr models.FeedItemFilter, page int) (favorites []models.Favourite, err error)
- func (fs *FavouriteStore) LookupByVideoRef(ctx context.Context, videoRef models.VideoRef) (*models.Favourite, error)
- func (f *FavouriteStore) Save(ctx context.Context, favourite *models.Favourite) error
- type FeedItemStore
- func (f *FeedItemStore) Close()
- func (f *FeedItemStore) Get(ctx context.Context, id uuid.UUID) (*models.FeedItem, error)
- func (f *FeedItemStore) ListRecent(ctx context.Context, feedID uuid.UUID, filterExpression models.FeedItemFilter, ...) (feedItems []models.FeedItem, err error)
- func (f *FeedItemStore) ListRecentsFromAllFeeds(ctx context.Context, filterExpression models.FeedItemFilter, page, count int) (feedItems []models.FeedItem, err error)
- func (f *FeedItemStore) PutIfAbsent(ctx context.Context, item *models.FeedItem) error
- func (f *FeedItemStore) Save(ctx context.Context, feedItem *models.FeedItem) error
- type FeedStore
- func (js *FeedStore) Close()
- func (js *FeedStore) Delete(ctx context.Context, id uuid.UUID) error
- func (js *FeedStore) Get(ctx context.Context, id uuid.UUID) (feed models.Feed, err error)
- func (js *FeedStore) List(ctx context.Context) (feeds []models.Feed, err error)
- func (js *FeedStore) Save(ctx context.Context, feed *models.Feed) error
- type JobStore
- type VideoStore
- func (vs *VideoStore) Close()
- func (vs *VideoStore) DeleteWithExtID(extId string) error
- func (vs *VideoStore) FindWithExtID(extId string) (*models.SavedVideo, error)
- func (vs *VideoStore) FindWithID(id uuid.UUID) (*models.SavedVideo, error)
- func (vs *VideoStore) ListRecent() (videos []models.SavedVideo, err error)
- func (vs *VideoStore) Save(video models.SavedVideo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FavouriteStore ¶ added in v0.0.8
type FavouriteStore struct {
// contains filtered or unexported fields
}
func NewFavouriteStore ¶ added in v0.0.8
func NewFavouriteStore(filename string) (*FavouriteStore, error)
func (*FavouriteStore) Close ¶ added in v0.0.8
func (f *FavouriteStore) Close()
func (*FavouriteStore) List ¶ added in v0.0.8
func (f *FavouriteStore) List(ctx context.Context, filterExpr models.FeedItemFilter, page int) (favorites []models.Favourite, err error)
func (*FavouriteStore) LookupByVideoRef ¶ added in v0.0.8
type FeedItemStore ¶
type FeedItemStore struct {
// contains filtered or unexported fields
}
func NewFeedItemStore ¶
func NewFeedItemStore(filename string) (*FeedItemStore, error)
func (*FeedItemStore) Close ¶
func (f *FeedItemStore) Close()
func (*FeedItemStore) ListRecent ¶
func (*FeedItemStore) ListRecentsFromAllFeeds ¶
func (f *FeedItemStore) ListRecentsFromAllFeeds(ctx context.Context, filterExpression models.FeedItemFilter, page, count int) (feedItems []models.FeedItem, err error)
func (*FeedItemStore) PutIfAbsent ¶
type FeedStore ¶
type FeedStore struct {
// contains filtered or unexported fields
}
func NewFeedStore ¶
type JobStore ¶
type JobStore struct {
// contains filtered or unexported fields
}
func NewJobStore ¶
type VideoStore ¶
type VideoStore struct {
// contains filtered or unexported fields
}
func NewVideoStore ¶
func NewVideoStore(filename string) (*VideoStore, error)
func (*VideoStore) Close ¶
func (vs *VideoStore) Close()
func (*VideoStore) DeleteWithExtID ¶
func (vs *VideoStore) DeleteWithExtID(extId string) error
func (*VideoStore) FindWithExtID ¶
func (vs *VideoStore) FindWithExtID(extId string) (*models.SavedVideo, error)
func (*VideoStore) FindWithID ¶ added in v0.0.5
func (vs *VideoStore) FindWithID(id uuid.UUID) (*models.SavedVideo, error)
func (*VideoStore) ListRecent ¶
func (vs *VideoStore) ListRecent() (videos []models.SavedVideo, err error)
func (*VideoStore) Save ¶
func (vs *VideoStore) Save(video models.SavedVideo) error
Click to show internal directories.
Click to hide internal directories.