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