httphealth

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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