handlers

package
v0.0.0-...-6e646ca Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK                  = 200
	StatusBadRequest          = 400
	StatusNotFound            = 404
	StatusInternalServerError = 500

	PathRoot   = "/"
	PathHealth = "/health"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler is a struct that holds the common dependencies for all endpoint handlers

func New

func New(cc call.Call) *Handler

New returns a new Handler pointer

func SetRoutes

func SetRoutes(router *gin.Engine, cc call.Call) (handler *Handler)

func (*Handler) HealthCheck

func (h *Handler) HealthCheck(c *gin.Context)

HealthCheck is used by our deployment validation step to measure application health Path - /health

Jump to

Keyboard shortcuts

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