Documentation
¶
Overview ¶
Package api contains interfaces
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface {
// Add returns ID of stored game
Add(g model.Game) (int, error)
// Game returns game
Game(int) (model.Game, error)
// Games returns game count
Games() (int, error)
// List filtered and sorted games page
List(f model.Filter, s model.GameSorter, p Page) ([]model.Game, error)
}
Repository games
Click to show internal directories.
Click to hide internal directories.