Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUIEmbedded ¶
func IsUIEmbedded() bool
IsUIEmbedded checks if the UI assets are embedded in the binary.
Types ¶
type Server ¶
type Server struct {
Handler *handlers.Handler
Storage storage.Storage
GrpcServer *googlegrpc.Server
// contains filtered or unexported fields
}
Server is the HTTP API server for Hermod. It wires routing, middleware, and access to the storage and engine registry.
func NewServer ¶
func NewServer(registry *registry.Registry, store storage.Storage, cfg *config.Config, configPath string, aiSvc *ai.SelfHealingService, ls ...storage.Storage) *Server
NewServer constructs a new Server with the provided engine registry and storage backend.
func (*Server) SetWorker ¶
func (s *Server) SetWorker(w handlers.WorkerUpdater)
SetWorker sets the worker updater for the handler.
Click to show internal directories.
Click to hide internal directories.