Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertMonster ¶
func InsertMonster(sqlClient *sqlx.DB, monsterRow MonsterRow) error
func NewTestSQLClient ¶
Types ¶
type MonsterRow ¶
type MonsterRow struct {
ID string `db:"id"`
Name string `db:"name"`
Health int `db:"health"`
MaxHealth int `db:"max_health"`
Attack int `db:"attack"`
Defense int `db:"defense"`
Speed int `db:"speed"`
AvatarURL string `db:"avatar_url"`
IsPartnerable int `db:"is_partnerable"`
}
func NewTestMonsterRow ¶
func NewTestMonsterRow(isPartnerable bool) MonsterRow
func ToMonsterRow ¶
func ToMonsterRow(monster *entity.Monster) *MonsterRow
func (*MonsterRow) ToMonster ¶
func (r *MonsterRow) ToMonster() *entity.Monster
type MonsterRows ¶
type MonsterRows []MonsterRow
func (MonsterRows) ToMonsters ¶
func (r MonsterRows) ToMonsters() []entity.Monster
Click to show internal directories.
Click to hide internal directories.