Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beer ¶
type Beer struct { ID int Name string Brewery string Abv float32 ShortDesc string Created time.Time }
Beer defines the properties of a beer to be listed
type Review ¶
type Review struct { ID string BeerID int FirstName string LastName string Score int Text string Created time.Time }
Review defines a beer review
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Memory storage keeps data in memory
func (*Storage) GetAllBeers ¶
GetAll return all beers
func (*Storage) GetAllReviews ¶
GetAll returns all reviews for a given beer
Click to show internal directories.
Click to hide internal directories.