Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
FetchGophers() ([]gopher.Gopher, error)
FetchGopherByID(ID string) (*gopher.Gopher, error)
}
Service provides fetching operations.
func NewService ¶
func NewService(repository gopher.Repository) Service
NewService creates a fetching service with the necessary dependencies
Click to show internal directories.
Click to hide internal directories.