Documentation
¶
Index ¶
Constants ¶
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
type MemoryCleanupRunnable ¶
MemoryCleanupRunnable is a controller-runtime Runnable that periodically prunes expired memory entries. It implements NeedLeaderElection so that the sweep only runs on the elected leader, preventing duplicate deletes when multiple replicas are deployed.
func NewMemoryCleanupRunnable ¶
func NewMemoryCleanupRunnable(dbClient dbpkg.Client, interval time.Duration) *MemoryCleanupRunnable
NewMemoryCleanupRunnable returns a MemoryCleanupRunnable with the given database client. interval controls how often the cleanup runs; pass 0 to use the default of 24 hours.
func (*MemoryCleanupRunnable) NeedLeaderElection ¶
func (m *MemoryCleanupRunnable) NeedLeaderElection() bool
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