httpserver

package
v0.0.0-...-d98bc50 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// API Path constants
	APIPathHealth               = "/health"
	APIPathVersion              = "/version"
	APIPathModelConfig          = "/api/modelconfigs"
	APIPathRuns                 = "/api/runs"
	APIPathSessions             = "/api/sessions"
	APIPathTasks                = "/api/tasks"
	APIPathTools                = "/api/tools"
	APIPathToolServers          = "/api/toolservers"
	APIPathToolServerTypes      = "/api/toolservertypes"
	APIPathAgents               = "/api/agents"
	APIPathModelProviderConfigs = "/api/modelproviderconfigs"
	APIPathModels               = "/api/models"
	APIPathMemories             = "/api/memories"
	APIPathNamespaces           = "/api/namespaces"
	APIPathA2A                  = "/api/a2a"
	APIPathMCP                  = "/mcp"
	APIPathFeedback             = "/api/feedback"
	APIPathLangGraph            = "/api/langgraph"
	APIPathCrewAI               = "/api/crewai"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

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

HTTPServer is the structure that manages the HTTP server

func NewHTTPServer

func NewHTTPServer(config ServerConfig) (*HTTPServer, error)

NewHTTPServer creates a new HTTP server instance

func (*HTTPServer) NeedLeaderElection

func (s *HTTPServer) NeedLeaderElection() bool

NeedLeaderElection implements controller-runtime's LeaderElectionRunnable interface

func (*HTTPServer) Start

func (s *HTTPServer) Start(ctx context.Context) error

Start initializes and starts the HTTP server

func (*HTTPServer) Stop

func (s *HTTPServer) Stop(ctx context.Context) error

Stop stops the HTTP server

type ServerConfig

type ServerConfig struct {
	Router            *mux.Router
	BindAddr          string
	KubeClient        ctrl_client.Client
	A2AHandler        a2a.A2AHandlerMux
	MCPHandler        *mcp.MCPHandler
	WatchedNamespaces []string
	DbClient          dbpkg.Client
	Authenticator     auth.AuthProvider
	Authorizer        auth.Authorizer
	ProxyURL          string
	Reconciler        reconciler.KagentReconciler
}

ServerConfig holds the configuration for the HTTP server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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