Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Movies ¶
type Movies struct { Movies []types.Movie // List of movies UserRatings map[int]types.User // Map of user ratings }
Movies represents the structure of the movies service.
func (*Movies) GetMovieById ¶
GetMovieByTitle returns a movie by id.
func (*Movies) GetMovieByTitle ¶
GetMovieByTitle returns a movie by its title.
func (*Movies) GetRandomUserID ¶
GetRandomUserID returns a random user ID.
func (*Movies) LoadMovies ¶
LoadMovies load movies from a JSON file.
func (*Movies) LoadRatings ¶
LoadRatings load ratings from a CSV file.
Click to show internal directories.
Click to hide internal directories.