health

package
v1.9.27 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AppName = "health"
)

Variables

This section is empty.

Functions

func NewHealthCheckRequest

func NewHealthCheckRequest() *healthgrpc.HealthCheckRequest

Types

type HealthCheckResponse

type HealthCheckResponse struct {
	Status string `json:"status"`
}

type HealthChecker

type HealthChecker struct {
	HealthCheckPath string
	// contains filtered or unexported fields
}

func NewDefaultHealthChecker

func NewDefaultHealthChecker() *HealthChecker

func NewHealthChecker

func NewHealthChecker(checker healthgrpc.HealthServer) *HealthChecker

func (*HealthChecker) Check

func (h *HealthChecker) Check(r *restful.Request, w *restful.Response)

func (*HealthChecker) WebService

func (h *HealthChecker) WebService() *restful.WebService

Jump to

Keyboard shortcuts

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