Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAddBeerReviewEndpoint ¶
func MakeAddBeerReviewEndpoint(s Service) func(w http.ResponseWriter, r *http.Request, p httprouter.Params)
MakeAddBeerEndpoint creates a handler for POST /beers/:id/reviews requests
Types ¶
type Handler ¶
type Handler func(http.ResponseWriter, *http.Request, httprouter.Params)
type Service ¶
Service provides review adding operations
func NewService ¶
func NewService(rR reviews.Repository) Service
NewService creates an adding service with the necessary dependencies
Click to show internal directories.
Click to hide internal directories.