healthcheck

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthResponse

type HealthResponse struct {
	Status  string         `json:"status"`
	Live    bool           `json:"live"`
	Ready   bool           `json:"ready"`
	Details map[string]any `json:"details,omitempty"`
}

HealthResponse represents the JSON response for health check endpoints

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server provides HTTP health check endpoints for Kubernetes probes

func NewServer

func NewServer(addr string, peerRegistry mpc.PeerRegistry, natsConn *nats.Conn, consulClient *api.Client) *Server

NewServer creates a new health check HTTP server

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown gracefully stops the health check server

func (*Server) Start

func (s *Server) Start() error

Start begins serving health check endpoints

Jump to

Keyboard shortcuts

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