Documentation ¶
Index ¶
- type SQLiteVideoRepository
- func (r *SQLiteVideoRepository) Create(subscriptionVideo SubscriptionVideo) (*SubscriptionVideo, error)
- func (r *SQLiteVideoRepository) Exists(id string) (bool, error)
- func (r *SQLiteVideoRepository) GetById(id string) (*SubscriptionVideo, error)
- func (r *SQLiteVideoRepository) GetByPlaylist(playlistName string) (*[]SubscriptionVideo, error)
- func (r *SQLiteVideoRepository) Migrate() error
- func (r *SQLiteVideoRepository) SetAllRemovedExcept(excludedIds *[]string) error
- func (r *SQLiteVideoRepository) Update(id string, updated SubscriptionVideo) (*SubscriptionVideo, error)
- type SubscriptionVideo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLiteVideoRepository ¶
type SQLiteVideoRepository struct {
// contains filtered or unexported fields
}
func NewSQLiteRepository ¶
func NewSQLiteRepository(db *sql.DB) *SQLiteVideoRepository
func (*SQLiteVideoRepository) Create ¶
func (r *SQLiteVideoRepository) Create(subscriptionVideo SubscriptionVideo) (*SubscriptionVideo, error)
func (*SQLiteVideoRepository) Exists ¶ added in v1.3.0
func (r *SQLiteVideoRepository) Exists(id string) (bool, error)
func (*SQLiteVideoRepository) GetById ¶
func (r *SQLiteVideoRepository) GetById(id string) (*SubscriptionVideo, error)
func (*SQLiteVideoRepository) GetByPlaylist ¶
func (r *SQLiteVideoRepository) GetByPlaylist(playlistName string) (*[]SubscriptionVideo, error)
func (*SQLiteVideoRepository) Migrate ¶
func (r *SQLiteVideoRepository) Migrate() error
func (*SQLiteVideoRepository) SetAllRemovedExcept ¶
func (r *SQLiteVideoRepository) SetAllRemovedExcept(excludedIds *[]string) error
func (*SQLiteVideoRepository) Update ¶
func (r *SQLiteVideoRepository) Update(id string, updated SubscriptionVideo) (*SubscriptionVideo, error)
Click to show internal directories.
Click to hide internal directories.