Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { // FetchBeers fetch all beers from repository FetchBeers() ([]beerscli.Beer, error) // FetchByID filter all beers and get only the beer that match with given id FetchByID(id int) (beerscli.Beer, error) }
func NewService ¶
NewService creates an adding service with the necessary dependencies
Click to show internal directories.
Click to hide internal directories.