Documentation ¶
Index ¶
- Variables
- type BattleRepository
- type MatchRepository
- func (r *MatchRepository) Find(ctx context.Context, id string) (*match.Match, error)
- func (r *MatchRepository) FindByPlayerID(ctx context.Context, playerId string) (*match.Match, error)
- func (r *MatchRepository) Save(ctx context.Context, entity *match.Match) error
- func (r *MatchRepository) Waiting(ctx context.Context) ([]*match.Match, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSet = wire.NewSet( NewMatchRepository, wire.Bind(new(usecase.MatchRepository), new(*MatchRepository)), NewBattleRepository, wire.Bind(new(usecase.BattleRepository), new(*BattleRepository)), )
Functions ¶
This section is empty.
Types ¶
type BattleRepository ¶
type BattleRepository struct {
// contains filtered or unexported fields
}
func NewBattleRepository ¶
func NewBattleRepository(db *db.Database) *BattleRepository
type MatchRepository ¶
type MatchRepository struct {
// contains filtered or unexported fields
}
func NewMatchRepository ¶
func NewMatchRepository(db *db.Database) *MatchRepository
func (*MatchRepository) FindByPlayerID ¶
Click to show internal directories.
Click to hide internal directories.