Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { Router *mux.Router Service service.DiamondService }
func Initialize ¶
func Initialize(service service.DiamondService) App
func (App) HomeHandler ¶
func (app App) HomeHandler(w http.ResponseWriter, _ *http.Request)
func (App) ReviewHandler ¶
func (app App) ReviewHandler(w http.ResponseWriter, r *http.Request)
ReviewHandler Accepts a new review.
func (App) ReviewsHandler ¶
func (app App) ReviewsHandler(w http.ResponseWriter, r *http.Request)
ReviewsHandler Responds with the reviews given
Click to show internal directories.
Click to hide internal directories.