Documentation
¶
Overview ¶
Package httpapi wires akari-server's HTTP surface: authentication, account and token management, and the session ingest protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Store *store.Store
Cfg config.Server
// contains filtered or unexported fields
}
Server holds the dependencies shared by all handlers.
func New ¶
New builds a Server. The parse worker is shared with the server main loop; here it backs the admin Reparse button, the rebuild status endpoint, and the UI gating. Its hooks fan out through the SSE hub: fleet-rebuild progress to the status stream, and each committed rebuild to the browsers watching that session.
func (*Server) RunInsightsRefresher ¶ added in v0.5.4
RunInsightsRefresher runs the fleet insights snapshot's background cadence until ctx is cancelled. The server main loop runs it beside the other background loops; serving works without it (a cold read computes on demand), it just loses the proactive recompute.
Source Files
¶
- analytics_snapshots.go
- api_dto.go
- app_api.go
- app_shell.go
- auth.go
- auth_attempts.go
- blob.go
- blob_upload.go
- csrf.go
- deadlines.go
- guide.go
- ingest.go
- insights_refresh.go
- mcp.go
- mcp_spool.go
- not_found.go
- oauth.go
- openapi.go
- password_work.go
- prefix.go
- reparse.go
- request_budget.go
- respond.go
- server.go
- session_append.go
- sse.go
- web.go
- web_ogimage.go