api

package
v0.0.0-...-e9bdced Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2017 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package api contains interfaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	Start int
	Count int
}

Page results

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

Jump to

Keyboard shortcuts

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