api

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 43 Imported by: 0

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) Routes

func (s *Server) Routes() http.Handler

func (*Server) SetOnSetupComplete

func (s *Server) SetOnSetupComplete(fn func(storage.Storage))

SetOnSetupComplete registers a callback invoked once first-run setup has opened the database. See Handler.OnSetupComplete for why this is a callback rather than something the handler does itself.

func (*Server) SetWorker

func (s *Server) SetWorker(w handlers.WorkerUpdater)

SetWorker sets the worker updater for the handler.

func (*Server) StartGRPC

func (s *Server) StartGRPC(addr string) error

func (*Server) Stop

func (s *Server) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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