handlers

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthHandler

type HealthHandler struct {
	// contains filtered or unexported fields
}

HealthHandler handles health check requests

func NewHealthHandler

func NewHealthHandler(logger *zap.Logger) *HealthHandler

NewHealthHandler creates a new health handler

func (*HealthHandler) Health

func (h *HealthHandler) Health(c echo.Context) error

Health handles GET /health

type UserHandler

type UserHandler struct {
	// contains filtered or unexported fields
}

UserHandler handles user-related HTTP requests

func NewUserHandler

func NewUserHandler(userService *models.UserService, logger *zap.Logger) *UserHandler

NewUserHandler creates a new user handler

func (*UserHandler) CreateUser

func (h *UserHandler) CreateUser(c echo.Context) error

CreateUser handles POST /api/users

func (*UserHandler) GetUser

func (h *UserHandler) GetUser(c echo.Context) error

GetUser handles GET /api/users/:id

func (*UserHandler) ListUsers

func (h *UserHandler) ListUsers(c echo.Context) error

ListUsers handles GET /api/users

type WelcomeHandler

type WelcomeHandler struct {
	// contains filtered or unexported fields
}

WelcomeHandler handles welcome page requests

func NewWelcomeHandler

func NewWelcomeHandler(logger *zap.Logger) *WelcomeHandler

NewWelcomeHandler creates a new welcome handler

func (*WelcomeHandler) Welcome

func (h *WelcomeHandler) Welcome(c echo.Context) error

Welcome handles GET /

Jump to

Keyboard shortcuts

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