health

package
v0.0.0-...-1225d9a Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 7 Imported by: 0

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