Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserHandler ¶
type UserHandler struct {
// contains filtered or unexported fields
}
UserHandler handles HTTP requests related to user operations. It encapsulates user registration functionality and manages the communication between HTTP layer and business logic.
func NewUserHandler ¶
func NewUserHandler(userStore users.UserStore) *UserHandler
func (*UserHandler) HandleUserRegistration ¶
func (h *UserHandler) HandleUserRegistration(w http.ResponseWriter, r *http.Request)
HandleUserRegistration is the HTTP handler for user registration. It processes incoming HTTP requests for user registration, validates the input, registers the user, and sends an appropriate response.
Click to show internal directories.
Click to hide internal directories.