Documentation
¶
Index ¶
- type User
- type UsersHandler
- type UsersRepository
- func (r *UsersRepository) Create(ctx context.Context, user User) (User, error)
- func (r *UsersRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *UsersRepository) FindByEmail(ctx context.Context, email string) (User, error)
- func (r *UsersRepository) FindByID(ctx context.Context, id uuid.UUID) (User, error)
- func (r *UsersRepository) Update(ctx context.Context, user User) (User, error)
- type UsersService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UsersHandler ¶
type UsersHandler struct {
// contains filtered or unexported fields
}
func NewUsersHandler ¶
func NewUsersHandler(service service) *UsersHandler
func (*UsersHandler) DeleteUser ¶
func (h *UsersHandler) DeleteUser(c *echo.Context) error
func (*UsersHandler) GetUserByID ¶
func (h *UsersHandler) GetUserByID(c *echo.Context) error
func (*UsersHandler) UpdateUser ¶
func (h *UsersHandler) UpdateUser(c *echo.Context) error
type UsersRepository ¶
type UsersRepository struct {
// contains filtered or unexported fields
}
func NewUsersRepository ¶
func NewUsersRepository(db *gorm.DB) *UsersRepository
func (*UsersRepository) FindByEmail ¶
type UsersService ¶
type UsersService struct {
// contains filtered or unexported fields
}
func NewUsersService ¶
func NewUsersService(repository repository) *UsersService
Click to show internal directories.
Click to hide internal directories.