server

package
v0.1.1 Latest Latest
Warning

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

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

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)

Jump to

Keyboard shortcuts

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