Documentation ¶
Index ¶
- func CreateMovie(s storage.Storage) http.HandlerFunc
- func DeleteMovie(s storage.Storage) http.HandlerFunc
- func GetLiveness() http.HandlerFunc
- func GetMovieById(s storage.Storage) http.HandlerFunc
- func GetMovies(s storage.Storage) http.HandlerFunc
- func GetReadiness(s storage.Storage) http.HandlerFunc
- type MovieResource
- type MoviesResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMovie ¶
func CreateMovie(s storage.Storage) http.HandlerFunc
Handler for HTTP Post - "/movies" Insert a new Movie document
func DeleteMovie ¶
func DeleteMovie(s storage.Storage) http.HandlerFunc
Handler for HTTP Delete - "/movies/{id}" Delete movie by id
func GetLiveness ¶
func GetLiveness() http.HandlerFunc
func GetMovieById ¶
func GetMovieById(s storage.Storage) http.HandlerFunc
Handler for HTTP Get - "/movies/{id}" Get movie by id
func GetMovies ¶
func GetMovies(s storage.Storage) http.HandlerFunc
Handler for HTTP Get - "/movies" Returns all Movie documents
func GetReadiness ¶
func GetReadiness(s storage.Storage) http.HandlerFunc
Types ¶
type MovieResource ¶
For Post/Put - /movies
type MoviesResource ¶
For Get - /movies
Click to show internal directories.
Click to hide internal directories.