mongodbspace

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	ctx context.Context,
	collection *mongo.Collection,
	x, y int,
) (space.Space, error)

New creates a Space backed by MongoDB.

Types

type Space

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

func (*Space) Mark

func (s *Space) Mark(ctx context.Context, gameID game.ID) (*player.Mark, error)

func (*Space) SetMark

func (s *Space) SetMark(ctx context.Context, gameID game.ID, m player.Mark) error

Jump to

Keyboard shortcuts

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