Documentation
¶
Overview ¶
Package server is fort-core's local HTTP/WS API (backlog AO-011): /health, graceful shutdown, and the event/command surface the fort-ui module consumes (the live-feed and command routes are added in Phase 3 on top of this).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct {
Config config.Config
Engine *engine.Engine
Store *store.Store
Logger *slog.Logger
// Mount optionally adds extra routes (the fort-ui module, wired in by
// cmd/fort). core never imports ui — the closure is provided from outside,
// preserving the core !-> ui seam.
Mount func(*http.ServeMux)
}
Deps are the server's collaborators. All are optional for the bare /health server; richer routes require engine + store.
Click to show internal directories.
Click to hide internal directories.