Documentation ¶
Index ¶
- type AuthHandler
- type RootHandler
- type ToolHandler
- type UserHandler
- func (h *UserHandler) CreateUser(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) DeleteUser(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) GetAllUser(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) GetUserByEmail(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) GetUserByID(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) RegisterRoutesV1(r chi.Router)
- func (h *UserHandler) UpdateUser(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
func NewAuthHandler ¶
func NewAuthHandler(logger *slog.Logger, service *service.AuthService) *AuthHandler
func (*AuthHandler) Register ¶
func (h *AuthHandler) Register(w http.ResponseWriter, r *http.Request)
func (*AuthHandler) RegisterRoutesV1 ¶
func (h *AuthHandler) RegisterRoutesV1(r chi.Router)
Register
func (*AuthHandler) SignIn ¶
func (h *AuthHandler) SignIn(w http.ResponseWriter, r *http.Request)
type RootHandler ¶
type RootHandler struct {
// contains filtered or unexported fields
}
func NewRootHandler ¶
func NewRootHandler(logger *slog.Logger) *RootHandler
func (*RootHandler) HandleHome ¶
func (h *RootHandler) HandleHome(w http.ResponseWriter, r *http.Request)
func (*RootHandler) HandleTestError ¶
func (h *RootHandler) HandleTestError(w http.ResponseWriter, r *http.Request)
func (*RootHandler) HandleTestPanic ¶
func (h *RootHandler) HandleTestPanic(w http.ResponseWriter, r *http.Request)
type ToolHandler ¶
type ToolHandler struct {
// contains filtered or unexported fields
}
func NewToolHandler ¶
func NewToolHandler(logger *slog.Logger, service *service.ToolService) *ToolHandler
func (*ToolHandler) GetIPInfo ¶
func (h *ToolHandler) GetIPInfo(w http.ResponseWriter, r *http.Request)
type UserHandler ¶
type UserHandler struct {
// contains filtered or unexported fields
}
func NewUserHandler ¶
func NewUserHandler(logger *slog.Logger, service *service.UserService) *UserHandler
func (*UserHandler) CreateUser ¶
func (h *UserHandler) CreateUser(w http.ResponseWriter, r *http.Request)
func (*UserHandler) DeleteUser ¶
func (h *UserHandler) DeleteUser(w http.ResponseWriter, r *http.Request)
func (*UserHandler) GetAllUser ¶
func (h *UserHandler) GetAllUser(w http.ResponseWriter, r *http.Request)
func (*UserHandler) GetUserByEmail ¶
func (h *UserHandler) GetUserByEmail(w http.ResponseWriter, r *http.Request)
func (*UserHandler) GetUserByID ¶
func (h *UserHandler) GetUserByID(w http.ResponseWriter, r *http.Request)
func (*UserHandler) RegisterRoutesV1 ¶
func (h *UserHandler) RegisterRoutesV1(r chi.Router)
Register
func (*UserHandler) UpdateUser ¶
func (h *UserHandler) UpdateUser(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.