game

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID string

ID uniquely identifies a game

type Repository

type Repository interface {
	// New creates a new game and creates a unique ID
	New(context.Context) (ID, error)
	// List obtains game IDs, ordered by creation date.
	// Pagination is managed through the max and offset params.
	List(ctx context.Context, max int64, offset int64) ([]ID, error)
	// Exists returns true iff the given game ID was previously created with New
	Exists(context.Context, ID) (bool, error)
}

Repository handles creation and tracking of games

Directories

Path Synopsis
rpcrepository

Jump to

Keyboard shortcuts

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