Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository struct
func NewRepository ¶
func NewRepository(db *gorm.DB, logger log.Logger) *Repository
NewRepository creates a new user repository
func (Repository) GetAll ¶
func (r Repository) GetAll() ([]domain.User, error)
GetAll returns a list of users
func (Repository) GetByID ¶
func (r Repository) GetByID(id string) (*domain.User, error)
GetByID get a user by its ID
Click to show internal directories.
Click to hide internal directories.