Documentation
¶
Overview ¶
Package httpapi exposes the local browser UI and core HTTP API routes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct {
Traces *diagnostics.TraceRing
Transport transport.DiagnosticsProvider
MotionTransport transport.Transport
LLMProvider llm.Provider
LLMHTTPClient *http.Client
CloudBaseURL string
CloudHTTPClient *http.Client
IntifaceHTTPClient *http.Client
BrowserBluetoothBridge *transport.BrowserBluetoothBridge
// ExecutablePath makes first-party worker discovery deterministic and
// injectable in tests. Empty falls back to os.Executable.
ExecutablePath string
UpdateHTTPClient *http.Client
UpdateReleaseAPIURL string
// Accounts is the process account domain. Nil creates one over Store's
// shared datastore. AuthenticationRequired protects every route except the
// deliberately public health, login/bootstrap, and Emergency Stop edges.
Accounts *accounts.Store
AuthenticationRequired bool
SecureCookies bool
AllowedBrowserHosts []string
}
Runtime contains app runtime collaborators exposed through HTTP diagnostics.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server owns the local HTTP routes and embedded static asset serving.
func New ¶
func New(static fs.FS, logger *slog.Logger, store *config.Store, runtime Runtime, version VersionInfo) (*Server, error)
New wires the HTTP API to the embedded static assets and structured logger.
func (*Server) Close ¶
func (s *Server) Close()
Close releases runtime and datastore resources after quiescing device work. It is idempotent so startup failures and deferred shutdown can share it.
type VersionInfo ¶
VersionInfo identifies the build served by the HTTP API.
Source Files
¶
- auth.go
- auth_limiter.go
- autopilot.go
- bluetooth_transport.go
- chat.go
- chat_sessions.go
- cloud_transport.go
- controller.go
- dynamic_motion.go
- host_path_picker.go
- host_path_picker_other.go
- intiface_transport.go
- library.go
- llm.go
- llm_duplicates.go
- llm_models.go
- llm_scheduler.go
- media.go
- media_sync.go
- media_tools.go
- modes.go
- motion.go
- personalization.go
- personas.go
- prompt_inspector.go
- server.go
- setup.go
- setup_diskspace_other.go
- setup_optional_jobs.go
- setup_parakeet_download.go
- setup_persistence.go
- setup_process_unix.go
- trace_archive.go
- update.go
- voice.go