health

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package health provides health check functionality for MCP connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsConnectionHealthy

func IsConnectionHealthy(conn *connection.MCPConnection, timeout time.Duration, logger log.Logger) bool

IsConnectionHealthy checks if a connection is working properly

func Min

func Min(a, b time.Duration) time.Duration

Min returns the minimum of two durations

func SendHeartbeat

func SendHeartbeat(cfg config.ServerConfig, logger log.Logger)

SendHeartbeat sends a lightweight ping to keep connections alive

Types

This section is empty.

Jump to

Keyboard shortcuts

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