handlers

package
v0.0.0-...-a917be8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL