service

package
v0.0.0-...-ede8c20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2020 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL