game

package
v0.0.0-...-d8c43a3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game interface {
	//add game
	Add(ctx context.Context, game *v1game.Game) (err error)

	//find
	FindOne(ctx context.Context, filter interface{}) (*v1game.Game, error)

	//update game
	Update(ctx context.Context, filter interface{}, update interface{}) error

	//delete game
	Delete(ctx context.Context, filter interface{}) error
}

game interface

func NewGame

func NewGame(mongo mongo.Mongo) Game

new game obejct

type GameImpl

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

game object impl

func (*GameImpl) Add

func (g *GameImpl) Add(ctx context.Context, game *v1game.Game) error

add game

func (*GameImpl) Delete

func (g *GameImpl) Delete(ctx context.Context, filter interface{}) error

delete game

func (*GameImpl) FindOne

func (g *GameImpl) FindOne(ctx context.Context, filter interface{}) (*v1game.Game, error)

find game

func (*GameImpl) Update

func (g *GameImpl) Update(ctx context.Context, filter interface{}, update interface{}) error

update game

Jump to

Keyboard shortcuts

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