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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PlayerIDIsNull                = "player id is null"
	TokenIsNull                   = "player token is null"
	PlayeSepcIsNull               = "player spec is null"
	GameIDIsNull                  = "game id is null"
	RoomIDIsNull                  = "room id is null"
	PlayerIDNotUnique             = "player id must unique"
	InternalServerError           = "internal server error"
	NotFound                      = "not found"
	MatchPlayerDeletionNotAllowed = "match player deletion not allowed"
)

Functions

This section is empty.

Types

type PlayerApp

type PlayerApp interface {
	Add(ctx context.Context, request *v1player.AddRequest) (response *v1player.AddResponse, err error)

	Delete(ctx context.Context, request *v1player.DeleteRequest) (response *v1player.DeleteResponse, err error)

	Find(ctx context.Context, request *v1player.FindRequest) (response *v1player.FindResponse, err error)
}

player app interface

func NewPlayerApp

func NewPlayerApp(mongo mongo.Mongo) PlayerApp

new player app

type PlayerAppImp

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

player app object impl

func (*PlayerAppImp) Add

func (p *PlayerAppImp) Add(ctx context.Context, request *v1player.AddRequest) (response *v1player.AddResponse, err error)

add player

func (*PlayerAppImp) Delete

func (p *PlayerAppImp) Delete(ctx context.Context, request *v1player.DeleteRequest) (response *v1player.DeleteResponse, err error)

delete player

func (*PlayerAppImp) Find

func (p *PlayerAppImp) Find(ctx context.Context, request *v1player.FindRequest) (response *v1player.FindResponse, err error)

find player

Jump to

Keyboard shortcuts

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