ctrepositories

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: 10 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 NewSessionRepository

func NewSessionRepository() repositories.SessionRepository

NewSessionRepository constructor

func NewTokenRepository

func NewTokenRepository() repositories.TokenRepository

NewTokenRepository constructor

func UseAccountRepository

func UseAccountRepository()

UseAccountRepository in domain

func UseCharacterRepository

func UseCharacterRepository()

UseCharacterRepository in domain

func UseSessionRepository

func UseSessionRepository()

UseSessionRepository in domain

func UseTokenRepository

func UseTokenRepository()

UseTokenRepository in domain

Types

type AccountRepository

type AccountRepository struct {
	Client *rpc.Client
}

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

type CharacterRepository struct {
	Client *rpc.Client
}

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

type SessionRepository struct {
	Client *rpc.Client
}

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

type TokenRepository struct {
	Client *rpc.Client
}

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

Jump to

Keyboard shortcuts

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