Documentation ¶
Index ¶
- func InitRoutes(router chi.Router)
- type GetHealthRequest
- type Handler
- func (*Handler) GetHealth(ctx context.Context, req *GetHealthRequest, w http.ResponseWriter) (*modelsv1.Empty, error)
- func (*Handler) GetHealthRequest(r *http.Request, w http.ResponseWriter) (*GetHealthRequest, error)
- func (*Handler) GetHealthResponse(ctx context.Context, res *modelsv1.Empty, w http.ResponseWriter) error
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 ¶
func (*Handler) GetHealth(ctx context.Context, req *GetHealthRequest, w http.ResponseWriter) (*modelsv1.Empty, error)
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.
Click to show internal directories.
Click to hide internal directories.