Documentation
¶
Index ¶
- func InitDB(ctx context.Context, db *sqlx.DB) error
- func InitDatabase(cfg config.Config) (*sqlx.DB, error)
- type MovieRepo
- func (r *MovieRepo) Create(newMovie models.Movie) (*models.Movie, error)
- func (r *MovieRepo) DeleteByName(name string) error
- func (r *MovieRepo) ReadAll() ([]models.Movie, error)
- func (r *MovieRepo) ReadByID(id int) (*models.Movie, error)
- func (r *MovieRepo) ReadByName(name string) (*models.Movie, error)
- func (r *MovieRepo) ReadUntil(months int) ([]models.Movie, error)
- func (r *MovieRepo) SetNotified(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MovieRepo ¶
type MovieRepo struct {
// contains filtered or unexported fields
}
func (*MovieRepo) DeleteByName ¶
func (*MovieRepo) SetNotified ¶
Click to show internal directories.
Click to hide internal directories.