Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GamesService ¶
type GamesService interface { List() ([]*parser.Game, error) Find(id string) (*parser.Game, error) }
GamesService indicates how to implements a new GamesService
func NewGamesService ¶
func NewGamesService(repo repository.GamesRepository) GamesService
NewGamesService creates a new instance of GamesService
func NewMockGamesService ¶
func NewMockGamesService( list func() ([]*parser.Game, error), find func(id string) (*parser.Game, error), ) GamesService
NewMockGamesService generates a new GamesService instance for mock data
Click to show internal directories.
Click to hide internal directories.