dao

package
v0.0.0-...-04ace94 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rooms

type Rooms interface {
	List() ([]*rooms.Room, error)
	Insert(r *rooms.Room) error
	Get(name string) (*rooms.Room, error)
	Delete(name string) error
	AddPlayer(name, username string) (*rooms.Room, error)
	DeletePlayer(name, username string) (*rooms.Room, error)
	SetGame(name string, typ rooms.GameType, id uuid.UUID) (*rooms.Room, error)
}

Rooms provides persistence operations for game rooms

type Sets

type Sets interface {
	List() ([]*set.Game, error)
	Insert(g *set.Game) error
	Get(uuid uuid.UUID) (*set.Game, error)
	Update(g *set.Game) error
	Delete(uuid uuid.UUID) error
}

Sets provides persistences operations for set games

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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