Documentation ¶
Index ¶
- func AllMovies(genre ...int) ([]*models.Movie, error)
- func CreateDbPool(dsn string) (*sql.DB, error)
- func DeleteMovie(id int) error
- func GetAllGenres() ([]*models.Genre, error)
- func GetMovieByID(id int) (*models.Movie, error)
- func GetMovieByIDForEdit(id int) (*models.Movie, []*models.Genre, error)
- func GetUserByEmail(email string) (*models.User, error)
- func GetUserByID(id int) (*models.User, error)
- func InsertMovie(movie *models.Movie) (int, error)
- func UpdateMovie(movie models.Movie) error
- func UpdateMovieGenres(id int, genreIDs []int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMovie ¶
func GetAllGenres ¶
func UpdateMovie ¶
func UpdateMovieGenres ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.