dbrepositories

package
v0.0.0-...-10e2223 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

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

func UseAccountRepository

func UseAccountRepository()

UseAccountRepository in domain

func UseCharacterRepository

func UseCharacterRepository()

UseCharacterRepository in domain

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

Jump to

Keyboard shortcuts

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