repo

package
v0.0.0-...-fbd6a26 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 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 Repo

type Repo struct {
	// contains filtered or unexported fields
}

Repo is an abstraction around games storage and retrieval

func New

func New(games []model.Game) *Repo

New generates a new Repo

func (Repo) FindGamesByID

func (repo Repo) FindGamesByID(ids []int, limit int) []model.Game

FindGamesByID queries the repo for the given game ids

func (*Repo) FindGamesByTitle

func (repo *Repo) FindGamesByTitle(title string, limit int) []model.Game

FindGamesByTitle queries the repo for games whos title partially matches the given title

Jump to

Keyboard shortcuts

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