httpserver

package
v0.0.0-...-837dd5c Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 18 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"
	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

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
	WatchedNamespaces []string
	DbClient          database.Client
	Authenticator     auth.AuthProvider
	Authorizer        auth.Authorizer
}

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