Documentation
¶
Index ¶
- func AllMovies(order int) []model.Movie
- func DeleteMovie(w http.ResponseWriter, r *http.Request)
- func GetMovie(w http.ResponseWriter, r *http.Request)
- func InsertMovie(w http.ResponseWriter, r *http.Request)
- func MoviesById(w http.ResponseWriter, r *http.Request)
- func MoviesByRating(w http.ResponseWriter, r *http.Request)
- func UpdateMovie(w http.ResponseWriter, r *http.Request)
- func UploadFile(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMovie ¶
func DeleteMovie(w http.ResponseWriter, r *http.Request)
function to remove a movie from database
func InsertMovie ¶
func InsertMovie(w http.ResponseWriter, r *http.Request)
Function to insert/create a new movie into the db
func MoviesById ¶
func MoviesById(w http.ResponseWriter, r *http.Request)
Function to return all movies from the database ordered by ID
func MoviesByRating ¶
func MoviesByRating(w http.ResponseWriter, r *http.Request)
Same as MoviesById but ordered by rating
func UpdateMovie ¶
func UpdateMovie(w http.ResponseWriter, r *http.Request)
function to update the data associated with a movie (given movie ID)
func UploadFile ¶
func UploadFile(w http.ResponseWriter, r *http.Request)
Upload file to /tmp/uploaded_rankings directory
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.