Documentation ¶
Index ¶
- type InMemoryUserRepository
- func (r *InMemoryUserRepository) Delete(id int) error
- func (r *InMemoryUserRepository) FindByDocumentNo(documentNo string) (*domain.User, error)
- func (r *InMemoryUserRepository) FindByEmail(email string) (*domain.User, error)
- func (r *InMemoryUserRepository) FindByID(id int) (*domain.User, error)
- func (r *InMemoryUserRepository) Save(user *domain.User) error
- func (r *InMemoryUserRepository) Update(user *domain.User) error
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryUserRepository ¶
type InMemoryUserRepository struct {
// contains filtered or unexported fields
}
func NewInMemoryUserRepository ¶
func NewInMemoryUserRepository() *InMemoryUserRepository
func (*InMemoryUserRepository) Delete ¶
func (r *InMemoryUserRepository) Delete(id int) error
func (*InMemoryUserRepository) FindByDocumentNo ¶
func (r *InMemoryUserRepository) FindByDocumentNo(documentNo string) (*domain.User, error)
func (*InMemoryUserRepository) FindByEmail ¶
func (r *InMemoryUserRepository) FindByEmail(email string) (*domain.User, error)
func (*InMemoryUserRepository) FindByID ¶
func (r *InMemoryUserRepository) FindByID(id int) (*domain.User, error)
type UserRepository ¶
func (*UserRepository) GetUsers ¶
func (ur *UserRepository) GetUsers() ([]domain.UserOutput, error)
Click to show internal directories.
Click to hide internal directories.