Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
type HTTPServer struct {
Server *http.Server
MetricsServer *http.Server
// contains filtered or unexported fields
}
HTTPServer wraps HTTP server functionality
func NewHTTPServer ¶
func NewHTTPServer(cfg *config.Config, mcpServer *mcp.Server, metrics *metrics.Metrics, logger *zap.Logger) *HTTPServer
NewHTTPServer creates a new HTTP server with MCP endpoints
func (*HTTPServer) Shutdown ¶
func (s *HTTPServer) Shutdown(ctx context.Context) error
Shutdown gracefully shuts down both servers
func (*HTTPServer) Start ¶
func (s *HTTPServer) Start() error
Start starts both the main server and metrics server (if configured)
Click to show internal directories.
Click to hide internal directories.