Documentation
¶
Index ¶
- func AllGenres() ([]*models.Genre, error)
- func AllMovies(genre ...int) ([]*models.Movie, error)
- func Authenticate(email, password string) (int, string, error)
- func CreateDbPool(dsn string) (*sql.DB, error)
- func DeleteMovie(id int) error
- func GetMovieByID(id int) (*models.Movie, error)
- func GetMovieByIDForEdit(id int) (*models.Movie, []*models.Genre, 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
- func UpdateUser(u models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Authenticate authenticates a user
func DeleteMovie ¶
func UpdateMovie ¶
func UpdateMovieGenres ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.