Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountRepository ¶
func NewAccountRepository() repositories.AccountRepository
NewAccountRepository constructor
func NewCharacterRepository ¶
func NewCharacterRepository() repositories.CharacterRepository
NewCharacterRepository constructor
Types ¶
type AccountRepository ¶
type AccountRepository struct {
// contains filtered or unexported fields
}
AccountRepository implements domain repository
func (*AccountRepository) Create ¶
func (repo *AccountRepository) Create(model *entities.Account) bool
Create over gorm
func (*AccountRepository) UsernameAndPasswordAreEqual ¶
func (repo *AccountRepository) UsernameAndPasswordAreEqual(model *entities.Account) bool
UsernameAndPasswordAreEqual over gorm
func (*AccountRepository) UsernameHasTaken ¶
func (repo *AccountRepository) UsernameHasTaken(username string) bool
UsernameHasTaken over gorm
type CharacterRepository ¶
type CharacterRepository struct {
// contains filtered or unexported fields
}
CharacterRepository implements domain repository
func (*CharacterRepository) CreateInAccount ¶
func (repo *CharacterRepository) CreateInAccount(model *entities.Character, account *entities.Account) bool
CreateInAccount over gorm
func (*CharacterRepository) LoadCharacter ¶
func (repo *CharacterRepository) LoadCharacter(id int) *entities.Character
LoadCharacter over gorm
func (*CharacterRepository) NameHasTaken ¶
func (repo *CharacterRepository) NameHasTaken(username string) bool
NameHasTaken over gorm
Click to show internal directories.
Click to hide internal directories.