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" APIPathProviders = "/api/providers" APIPathModels = "/api/models" APIPathMemories = "/api/memories" APIPathNamespaces = "/api/namespaces" APIPathA2A = "/api/a2a" 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 ServerConfig ¶
type ServerConfig struct {
Router *mux.Router
BindAddr string
KubeClient ctrl_client.Client
A2AHandler a2a.A2AHandlerMux
WatchedNamespaces []string
DbClient database.Client
Authenticator auth.AuthProvider
Authorizer auth.Authorizer
}
ServerConfig holds the configuration for the HTTP server
Click to show internal directories.
Click to hide internal directories.