Documentation ¶ Index ¶ func New(ctx context.Context, collection *mongo.Collection, x, y int) (space.Space, error) type Space func (s *Space) Mark(ctx context.Context, gameID game.ID) (*player.Mark, error) func (s *Space) SetMark(ctx context.Context, gameID game.ID, m player.Mark) error 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 Source Files ¶ View all Source files space.go Click to show internal directories. Click to hide internal directories.