ram

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: 8 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 struct {
	// contains filtered or unexported fields
}

Rooms is the collection of fake dao roomms

func NewRooms

func NewRooms() *Rooms

func (*Rooms) AddPlayer

func (rms *Rooms) AddPlayer(name, username string) (*rooms.Room, error)

func (*Rooms) Delete

func (rms *Rooms) Delete(name string) error

func (*Rooms) DeletePlayer

func (rms *Rooms) DeletePlayer(name, username string) (*rooms.Room, error)

func (*Rooms) Dump

func (rms *Rooms) Dump() string

func (*Rooms) Get

func (rms *Rooms) Get(name string) (*rooms.Room, error)

func (*Rooms) Insert

func (rms *Rooms) Insert(r *rooms.Room) error

func (*Rooms) List

func (rms *Rooms) List() ([]*rooms.Room, error)

func (*Rooms) SetGame

func (rms *Rooms) SetGame(name string, typ rooms.GameType, id uuid.UUID) (*rooms.Room, error)

type Sets

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

func NewSets

func NewSets() *Sets

func (*Sets) Delete

func (s *Sets) Delete(uuid uuid.UUID) error

func (*Sets) Dump

func (s *Sets) Dump() string

func (*Sets) Get

func (s *Sets) Get(uuid uuid.UUID) (*set.Game, error)

func (*Sets) Insert

func (s *Sets) Insert(g *set.Game) error

func (*Sets) List

func (s *Sets) List() ([]*set.Game, error)

func (*Sets) Update

func (s *Sets) Update(g *set.Game) error

Jump to

Keyboard shortcuts

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