handlers

package
v0.0.0-...-30eebbc Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

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)

func (*RootHandler) RegisterRoutes

func (h *RootHandler) RegisterRoutes(r chi.Router)

Register

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)

func (*ToolHandler) RegisterRoutes

func (h *ToolHandler) RegisterRoutes(r chi.Router)

Register

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)

Jump to

Keyboard shortcuts

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