Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.