Documentation ¶
Index ¶
- func DBConnect() bool
- type MemoryDB
- type UserRepository
- func (ur *UserRepository) Delete(id string) error
- func (ur *UserRepository) Exists(id string) (bool, error)
- func (ur *UserRepository) ExistsUser(u domain.User) (domain.User, error)
- func (ur *UserRepository) Insert(u domain.User) (string, error)
- func (ur *UserRepository) Select(id string) (domain.User, error)
- func (ur *UserRepository) SelectAll() ([]domain.User, error)
- func (ur *UserRepository) SelectByName(name string) (domain.User, error)
- func (ur *UserRepository) Update(u domain.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserRepository ¶
type UserRepository struct { }
func (*UserRepository) Delete ¶
func (ur *UserRepository) Delete(id string) error
func (*UserRepository) ExistsUser ¶
func (*UserRepository) SelectByName ¶
func (ur *UserRepository) SelectByName(name string) (domain.User, error)
Click to show internal directories.
Click to hide internal directories.