Documentation ¶
Index ¶
- type InMemoryAccountRepository
- func (repo *InMemoryAccountRepository) CheckAccountByEmail(email string) bool
- func (repo *InMemoryAccountRepository) CheckAccountByUserName(userName string) bool
- func (repo *InMemoryAccountRepository) DeleteAccountById(accountId string) bool
- func (repo *InMemoryAccountRepository) Save(account *entities.Account) error
- type InMemoryBookRepository
- func (repo *InMemoryBookRepository) Add(newBook *entities.Book) (*entities.Book, error)
- func (repo *InMemoryBookRepository) Find(bookId string) (*entities.Book, error)
- func (repo *InMemoryBookRepository) Get(bookId string) (*entities.Book, error)
- func (repo *InMemoryBookRepository) List() ([]*entities.Book, error)
- func (repo *InMemoryBookRepository) Remove(bookId string) error
- type InMemoryUserRepository
- func (repo *InMemoryUserRepository) CheckByEmail(email string) bool
- func (repo *InMemoryUserRepository) CheckById(userId string) bool
- func (repo *InMemoryUserRepository) CheckByUserName(userName string) bool
- func (repo *InMemoryUserRepository) Delete(userId string) error
- func (repo *InMemoryUserRepository) GetById(userId string) (*entities.User, error)
- func (repo *InMemoryUserRepository) List() []*entities.User
- func (repo *InMemoryUserRepository) Save(user *entities.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryAccountRepository ¶
type InMemoryAccountRepository struct{}
func NewInmemoryAccountRepository ¶
func NewInmemoryAccountRepository() *InMemoryAccountRepository
func (*InMemoryAccountRepository) CheckAccountByEmail ¶
func (repo *InMemoryAccountRepository) CheckAccountByEmail(email string) bool
func (*InMemoryAccountRepository) CheckAccountByUserName ¶
func (repo *InMemoryAccountRepository) CheckAccountByUserName(userName string) bool
func (*InMemoryAccountRepository) DeleteAccountById ¶
func (repo *InMemoryAccountRepository) DeleteAccountById(accountId string) bool
type InMemoryBookRepository ¶
type InMemoryBookRepository struct{}
func NewInMemoryBookRepository ¶
func NewInMemoryBookRepository() *InMemoryBookRepository
func (*InMemoryBookRepository) Find ¶
func (repo *InMemoryBookRepository) Find(bookId string) (*entities.Book, error)
func (*InMemoryBookRepository) Get ¶
func (repo *InMemoryBookRepository) Get(bookId string) (*entities.Book, error)
func (*InMemoryBookRepository) List ¶
func (repo *InMemoryBookRepository) List() ([]*entities.Book, error)
func (*InMemoryBookRepository) Remove ¶
func (repo *InMemoryBookRepository) Remove(bookId string) error
type InMemoryUserRepository ¶
type InMemoryUserRepository struct{}
func NewInMemoryUserRepository ¶
func NewInMemoryUserRepository() *InMemoryUserRepository
func (*InMemoryUserRepository) CheckByEmail ¶
func (repo *InMemoryUserRepository) CheckByEmail(email string) bool
func (*InMemoryUserRepository) CheckById ¶
func (repo *InMemoryUserRepository) CheckById(userId string) bool
func (*InMemoryUserRepository) CheckByUserName ¶
func (repo *InMemoryUserRepository) CheckByUserName(userName string) bool
func (*InMemoryUserRepository) Delete ¶
func (repo *InMemoryUserRepository) Delete(userId string) error
func (*InMemoryUserRepository) GetById ¶
func (repo *InMemoryUserRepository) GetById(userId string) (*entities.User, error)
func (*InMemoryUserRepository) List ¶
func (repo *InMemoryUserRepository) List() []*entities.User
Click to show internal directories.
Click to hide internal directories.