inmemory

package
v0.0.0-...-0de1ee4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type BattleRepository

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

func NewBattleRepository

func NewBattleRepository(db *db.Database) *BattleRepository

func (*BattleRepository) Save

func (r *BattleRepository) Save(ctx context.Context, entity *battle.Battle) error

type MatchRepository

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

func NewMatchRepository

func NewMatchRepository(db *db.Database) *MatchRepository

func (*MatchRepository) Find

func (r *MatchRepository) Find(ctx context.Context, id string) (*match.Match, error)

func (*MatchRepository) FindByPlayerID

func (r *MatchRepository) FindByPlayerID(ctx context.Context, playerId string) (*match.Match, error)

func (*MatchRepository) Save

func (r *MatchRepository) Save(ctx context.Context, entity *match.Match) error

func (*MatchRepository) Waiting

func (r *MatchRepository) Waiting(ctx context.Context) ([]*match.Match, error)

Jump to

Keyboard shortcuts

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