reviewing

package
Version: v0.0.0-...-b3f917f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 6 Imported by: 0

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 Service

type Service interface {
	AddBeerReview(reviews.Review)
	AddSampleReviews()
}

Service provides review adding operations

func NewService

func NewService(rR reviews.Repository) Service

NewService creates an adding service with the necessary dependencies

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL