Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("beer not found")
ErrNotFound is used when a beer could not be found.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository provides access to the review storage.
type Review ¶
type Review struct { BeerID int `json:"beer_id"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Score int `json:"score"` Text string `json:"text"` }
Review defines a beer review
type Service ¶
Service provides reviewing operations.
func NewService ¶
func NewService(r Repository) Service
NewService creates an adding service with the necessary dependencies
Click to show internal directories.
Click to hide internal directories.