Documentation ¶
Index ¶
- func NewAccountRepository() repositories.AccountRepository
- func NewCharacterRepository() repositories.CharacterRepository
- func NewSessionRepository() repositories.SessionRepository
- func NewTokenRepository() repositories.TokenRepository
- func UseAccountRepository()
- func UseCharacterRepository()
- func UseSessionRepository()
- func UseTokenRepository()
- type AccountRepository
- type CharacterRepository
- type SessionRepository
- type TokenRepository
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 NewSessionRepository ¶
func NewSessionRepository() repositories.SessionRepository
NewSessionRepository constructor
func NewTokenRepository ¶
func NewTokenRepository() repositories.TokenRepository
NewTokenRepository constructor
Types ¶
type AccountRepository ¶
AccountRepository interface
func (*AccountRepository) Create ¶
func (repo *AccountRepository) Create(account *entities.Account) bool
Create proxy method
func (*AccountRepository) UsernameAndPasswordAreEqual ¶
func (repo *AccountRepository) UsernameAndPasswordAreEqual(account *entities.Account) bool
UsernameAndPasswordAreEqual proxy method
func (*AccountRepository) UsernameHasTaken ¶
func (repo *AccountRepository) UsernameHasTaken(username string) bool
UsernameHasTaken proxy method
type CharacterRepository ¶
CharacterRepository interface
func (*CharacterRepository) CreateInAccount ¶
func (repo *CharacterRepository) CreateInAccount(character *entities.Character, account *entities.Account) bool
CreateInAccount proxy method
func (*CharacterRepository) LoadCharacter ¶
func (repo *CharacterRepository) LoadCharacter(id int) *entities.Character
LoadCharacter proxy method
func (*CharacterRepository) NameHasTaken ¶
func (repo *CharacterRepository) NameHasTaken(name string) bool
NameHasTaken proxy method
type SessionRepository ¶
SessionRepository interface
func (*SessionRepository) FindAccountToken ¶
func (repo *SessionRepository) FindAccountToken(account *entities.Account)
FindAccountToken proxy method
func (*SessionRepository) StoreAccountToken ¶
func (repo *SessionRepository) StoreAccountToken(token string, account *entities.Account)
StoreAccountToken proxy method
type TokenRepository ¶
TokenRepository interface
func (*TokenRepository) CheckUsername ¶
func (repo *TokenRepository) CheckUsername(username string, token string) bool
CheckUsername proxy method
func (*TokenRepository) GenerateToken ¶
func (repo *TokenRepository) GenerateToken(username string) string
GenerateToken proxy method
Click to show internal directories.
Click to hide internal directories.