Documentation ¶
Index ¶
- type Battle
- func (b Battle) CreateOrUpdate(ctx context.Context, battle *entity.BattleSession) error
- func (b Battle) LoadByID(ctx context.Context, id uint) (*entity.BattleSession, error)
- func (b Battle) LoadMany(ctx context.Context, predicate predicate.BattleSession) ([]*entity.BattleSession, error)
- func (b Battle) RemoveByID(ctx context.Context, id uint) error
- type BattleOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Battle ¶
type Battle struct {
// contains filtered or unexported fields
}
func NewBattle ¶
func NewBattle(opts *BattleOptions) *Battle
func (Battle) CreateOrUpdate ¶
func (Battle) LoadMany ¶
func (b Battle) LoadMany(ctx context.Context, predicate predicate.BattleSession) ([]*entity.BattleSession, error)
type BattleOptions ¶
Click to show internal directories.
Click to hide internal directories.