repositorygorm

package
v0.0.0-...-c2c5a46 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 (b Battle) CreateOrUpdate(ctx context.Context, battle *entity.BattleSession) error

func (Battle) LoadByID

func (b Battle) LoadByID(ctx context.Context, id uint) (*entity.BattleSession, error)

func (Battle) LoadMany

func (b Battle) LoadMany(ctx context.Context, predicate predicate.BattleSession) ([]*entity.BattleSession, error)

func (Battle) RemoveByID

func (b Battle) RemoveByID(ctx context.Context, id uint) error

type BattleOptions

type BattleOptions struct {
	DB *gorm.DB
}

Jump to

Keyboard shortcuts

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