player

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 Player

type Player interface {
	//add player
	Add(ctx context.Context, player *v1player.Player) (err error)

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

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

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

player interface

func NewPlayer

func NewPlayer(mongo mongo.Mongo) Player

new player obejct

type PlayerImpl

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

player object impl

func (*PlayerImpl) Add

func (g *PlayerImpl) Add(ctx context.Context, player *v1player.Player) error

add player

func (*PlayerImpl) Delete

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

delete player

func (*PlayerImpl) FindOne

func (g *PlayerImpl) FindOne(ctx context.Context, filter interface{}) (*v1player.Player, error)

find player

func (*PlayerImpl) Update

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

update player

Jump to

Keyboard shortcuts

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