Documentation ¶
Index ¶
- func Cleanup()
- func Connect(conninfo string)
- type UserRepository
- func (r UserRepository) All() ([]entities.User, error)
- func (r UserRepository) Find(id int) (interface{}, error)
- func (r UserRepository) FindByEmail(email string) (*entities.User, error)
- func (r UserRepository) FindById(id int) (*entities.User, error)
- func (r UserRepository) Insert(user *entities.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserRepository ¶
func NewUserRepository ¶
func NewUserRepository() *UserRepository
func (UserRepository) Find ¶
func (r UserRepository) Find(id int) (interface{}, error)
func (UserRepository) FindByEmail ¶
func (r UserRepository) FindByEmail(email string) (*entities.User, error)
Click to show internal directories.
Click to hide internal directories.