Documentation ¶
Overview ¶
Package httphealth uses http GET to provide a health check for the server.
Index ¶
Constants ¶
View Source
const HealthV1ServiceName = "/yorkie.v1.YorkieService/health"
HealthV1ServiceName is the fully-qualified name of the v1 version of the health service.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(checker grpchealth.Checker) (string, http.Handler)
NewHandler creates a new HTTP handler for health checks.
Types ¶
type CheckResponse ¶
type CheckResponse struct {
Status string `json:"status"`
}
CheckResponse represents the response structure for health checks.
Click to show internal directories.
Click to hide internal directories.