healthctl

package
v0.0.0-...-df8c4e2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRoutes

func InitRoutes(router chi.Router)

Types

type GetHealthRequest

type GetHealthRequest struct{}

GetHealthRequest is the request for the GetCountdown operation.

type Handler

type Handler struct{}

Handler implements methods, which satisfy the endpoint format.

func (*Handler) GetHealth

GetHealth is used as a simple health check.

func (*Handler) GetHealthRequest

func (*Handler) GetHealthRequest(r *http.Request, w http.ResponseWriter) (*GetHealthRequest, error)

GetHealthRequest validates and creates the request for the GetCountdown operation.

func (*Handler) GetHealthResponse

func (*Handler) GetHealthResponse(ctx context.Context, res *modelsv1.Empty, w http.ResponseWriter) error

GetHealthResponse writes out the response for the GetCountdown operation.

Jump to

Keyboard shortcuts

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