Documentation
¶
Overview ¶
This package implements a watchdog to run alongside this MCP Server. As the MCP Server may start multiple external dependencies (e.g. MATLAB processes), in the event of forceful shutdown, this watchdog ensures proper termination and cleanup of the external dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerFactory ¶ added in v0.3.0
type OSSignaler ¶
type ProcessHandler ¶
type ServerFactory ¶ added in v0.4.0
type ServerHandlerFactory ¶ added in v0.4.1
type SocketFactory ¶ added in v0.4.0
type Watchdog ¶
type Watchdog struct {
// contains filtered or unexported fields
}
func New ¶
func New( loggerFactory LoggerFactory, osLayer OSLayer, processHandler ProcessHandler, osSignaler OSSignaler, serverHandlerFactory ServerHandlerFactory, serverFactory ServerFactory, socketFactory SocketFactory, ) *Watchdog
Click to show internal directories.
Click to hide internal directories.