Mirexa

Wiki Reference

Dashboard HTTP API

Every route the Mirexa dashboard serves — method, path, permission, parameters, request and response JSON, error statuses, the session and refresh flow, and the Server-Sent Events feed.

The Mirexa dashboard (mirexa-dashboard, source /cmd/dashboard) is an HTTP JSON API in front of one node or a cluster; the web UI in /web is its only shipped client. It signs users in with its own username/password store, holds one Mirexa session of its own to the storage node for all of them, and translates browser requests into wire-protocol calls. This page lists every route. How to deploy and configure the dashboard is on The web dashboard.

The route table in /internal/dashboard/server.go is the one definition of the API; /docs/operations/dashboard-api.md carries a summary table that TestDocs_TheAPIReferenceMatchesTheRoutes checks against it, and TestDashboard_EveryRouteIsExercisedByATest fails if a route has no test.

Routes

Method Path Auth Permission
GET /health none —
GET /ready none —
POST /api/v1/auth/login none —
POST /api/v1/auth/refresh refresh cookie —
POST /api/v1/auth/logout bearer —
GET /api/v1/auth/capabilities bearer —
GET /api/v1/streams bearer LIST_STREAMS
GET /api/v1/streams/{stream_id} bearer LIST_STREAMS
GET /api/v1/streams/{stream_id}/candles bearer READ_CANDLES
GET /api/v1/streams/{stream_id}/gaps bearer READ_CANDLES
POST /api/v1/streams/{stream_id}/gaps/{gap_start}/fill bearer WRITE_CANDLES
POST /api/v1/streams/{stream_id}/gaps/{gap_start}/autofill bearer WRITE_CANDLES
POST /api/v1/streams/{stream_id}/gaps/{gap_start}/accept bearer WRITE_CANDLES
GET /api/v1/streams/{stream_id}/events bearer READ_CANDLES
GET /api/v1/metrics/nodes bearer LIST_STREAMS
GET /api/v1/metrics/cluster bearer LIST_STREAMS

Path parameters

  • {stream_id} is symbol:timeframe:exchange, for example BTCUSDT:1m:binance (the order StreamID.String() produces; the command-line tools use the opposite order). URL-encode it. Anything that is not three colon-separated parts is 400.
  • {gap_start} is a gap's start in Unix nanoseconds. The gap listings report start_ms (milliseconds), so multiply by 1,000,000; the web UI does exactly that. It must name a gap's start exactly: a start no gap has is 404, never applied to the nearest hole, because a gap's start moves when it merges with a neighbour.

Conventions

  • Authentication is a bearer token in the Authorization: Bearer <token> header, never a cookie or query parameter (the refresh route is the one exception, below). Missing: 401 authentication required; expired: 401 session expired (refresh rather than re-entering a password); anything else: 401 invalid session.

  • Errors always have one shape, written by the dashboard and never copied from an internal error's text:

    json
    { "error": "a sentence written by this server" }
    
  • An unknown path is 404 {"error":"no such endpoint"}; a known path with the wrong method is 405 with an Allow header — wildcard routes included.

  • Times in query parameters are RFC 3339 or Unix milliseconds. Times in responses are both: an RFC 3339 string and a _ms integer.

  • JSON request bodies refuse unknown fields.

  • The permission check is an intersection. A request needs the permission in the user's configured role and in the grant the storage node gave the dashboard. A missing one is 403 with a message naming it. When the dashboard is not connected to the node (it does not yet know its grant), only the role is checked and the request goes on; the node then decides, and a failure arrives as 503, not 403.

What the status codes mean

Status Meaning What a client should do
401 The user's session is missing, expired or invalid. Refresh, or sign in again. The only status that means this.
403 A valid session lacking a permission, or a gap that may not be filled. Show the reason; signing in again changes nothing.
404 No such route, stream or gap.
409 A write into a stream the node derives (DerivedStream). Not offered from the dashboard.
422 The node refused the content of a fill or accept, with its reason (a Protocol or HistoryRequired refusal). Show the node's reason.
429 Too many failed sign-ins from an address, or too many open event streams. Wait (Retry-After on sign-in).
501 The node does not support the request, or the dashboard does not sample a cluster.
502 The node answered with an error the dashboard does not map.
503 The dashboard cannot serve: no node configured, the node unreachable or shedding load (Retry-After: 1), or the dashboard's own token to the node expired or narrowed. Retry later; not a login problem.
504 The node did not answer in time. Retry a read; reconcile a write.
500 The dashboard built a request the node rejected (Protocol, PayloadTooLarge), or an internal failure. Report it.

The mapping is writeUpstreamError in /internal/dashboard/query.go (TestQueryCandles_UpstreamErrorsAreNotAll500, TestQueryCandles_ExpiredUpstreamIsNotA401).

Probes

GET /health

Liveness of the dashboard process only; it checks nothing else. Always 200 {"status":"ok"}.

GET /ready

Readiness: 200 when the dashboard is connected to the node and holds the grant it is configured to require, otherwise 503.

json
{ "ready": false, "upstream": "not connected", "upstream_grant": [], "required": ["READ_CANDLES"] }

upstream is "connected", "not connected" (may fix itself) or a sentence naming the missing permission (fix the configuration). Because it says whether a storage node is up, the shipped reverse proxy does not expose it.

Sessions

Sessions are stateless tokens signed by the dashboard (an HMAC over a fixed layout, with no algorithm field — not JWTs). A session lasts dashboard.session_ttl (15 minutes by default). The browser keeps the token in memory only.

POST /api/v1/auth/login

Request (Content-Type: application/json or none; body at most 4 KiB):

json
{ "username": "alice", "password": "…" }

Response 200:

json
{ "token": "…", "expires_at": "2026-10-30T10:15:00Z", "subject": "alice", "role": ["READ_CANDLES", "LIST_STREAMS"] }

When refresh is enabled the response also sets the refresh cookie. Errors: 401 invalid username or password (one message for every failure), 400 malformed JSON or trailing data, 413 body too large, 415 wrong content type, 429 throttled.

Throttle. After 10 failed sign-ins from one address within 15 minutes, further attempts are refused with 429 and Retry-After: 900 before the body is read or a password hashed; a successful sign-in clears that address's count. The address is the TCP peer's host, unless that peer is listed in dashboard.trusted_proxies: then the client is read from X-Forwarded-For, from the right, past every trusted proxy. The list is empty by default, so behind a reverse proxy that is not listed, every user shares the proxy's address and one bucket: ten failures by anyone block sign-in for everyone behind it for up to 15 minutes. deploy/ pins the proxy's address and trusts exactly it. A /0 prefix is refused.[1]

POST /api/v1/auth/refresh

Authenticated by the refresh cookie, not a bearer token — after a page reload the in-memory token is gone, and that is when a refresh is needed. Response 200 has the same shape as login. The user's role is re-read from the dashboard's configuration, so a narrowed role takes effect at the next refresh, and a removed user cannot refresh.

Status When
401 no refresh cookie No cookie.
401 refresh cookie is not valid Expired, forged or malformed; the cookie is cleared.
401 invalid session The user is no longer configured; the cookie is cleared.
404 Refresh is turned off (dashboard.refresh_ttl: 0).

The cookie is __Host-mirexa_refresh when dashboard.session_cookie_secure is on (the default), and mirexa_refresh otherwise (a browser refuses the __Host- prefix without Secure). It is HttpOnly, SameSite=Strict, Path=/, no Domain, with a Max-Age of refresh_ttl (12 hours by default). It carries no permissions, does not slide, and is accepted nowhere but this route; a refresh token presented as a bearer token is refused.[2]

POST /api/v1/auth/logout

Clears the refresh cookie and answers:

json
{
  "token_remains_valid_until": "2026-10-30T10:15:00Z",
  "note": "session tokens are stateless and cannot be revoked; discard the token client-side. It stops working at the time above."
}

The session token itself cannot be withdrawn; only the ability to get new ones is.

GET /api/v1/auth/capabilities

json
{
  "subject": "alice",
  "role": ["READ_CANDLES", "WRITE_CANDLES", "LIST_STREAMS"],
  "effective": ["READ_CANDLES", "LIST_STREAMS"],
  "upstream_grant": ["READ_CANDLES", "LIST_STREAMS"]
}

role is what the user is configured for, upstream_grant what the node granted the dashboard, and effective their intersection — what the user can actually do. A UI must gate controls on effective. All three are always arrays, never null; an empty upstream_grant means the dashboard is not connected.

Streams

GET /api/v1/streams

One page of the node's stream catalog (on a cluster, every node's, merged).

Parameter Default Meaning
cursor next_cursor from the previous page.
limit node default (200) Page size; above 1,000 is clamped to 1,000.
stats false true adds per-stream statistics.
exchange, timeframe Exact filters.
symbol Case-insensitive prefix.
sort id id, last_update, record_count or storage_size. Anything but id implies stats.
order ascending desc reverses.

Filters apply on the node before the page is cut. Pagination is key-set: there are no page numbers and no total, and changing a filter or the sort must restart from no cursor.

json
{
  "streams": [
    {
      "id": "BTCUSDT:1m:binance",
      "exchange": "binance",
      "symbol": "BTCUSDT",
      "timeframe": "1m",
      "stats": {
        "persisted_records": 525600,
        "chunk_count": 53,
        "gaps": { "total": 4, "open": 1, "off_time": 3, "missing_seconds": 720 },
        "correction_count": 0,
        "bytes_on_disk": 6291456,
        "first_time": "2025-10-30T00:00:00Z",
        "last_time": "2026-10-30T09:00:00Z",
        "first_time_ms": 1761782400000,
        "last_time_ms": 1793350800000
      }
    }
  ],
  "next_cursor": "BTCUSDT:1m:binance",
  "has_more": true
}

(Shape from the source; the values are illustrative.) stats is present only when asked for. persisted_records, chunk_count, correction_count and bytes_on_disk count what is on disk; missing_seconds counts only genuinely missing time, never market closure or gaps already filled. On a cluster, a node that did not answer is named in missing_nodes and the page is still returned; such a page is not cached. A sorted listing across several nodes is refused with 400 ("across several nodes streams page by id only"). A complete answer is cached for dashboard.list_cache_ttl (5 s), keyed by the effective permissions and the query string; the X-Cache header says hit or miss.

GET /api/v1/streams/{stream_id}

One stream's detail: id, exchange, symbol, timeframe and stats (as above). Found by exact match, not by paging. 404 no such stream when the node does not hold it.

Candles

GET /api/v1/streams/{stream_id}/candles

Parameter Default Meaning
start end − 24 h RFC 3339 or Unix ms; inclusive.
end now RFC 3339 or Unix ms; exclusive. Must be after start.
limit 1,000 Candles per response; above 5,000 is clamped to 5,000.
order ascending desc returns the newest limit candles of the window.
json
{
  "stream_id": "BTCUSDT:1m:binance",
  "candles": [
    { "time": "2026-10-20T09:30:00Z", "time_ms": 1792575000000, "open": 67012.5, "high": 67248.75,
      "low": 66981.25, "close": 67104, "volume": 148.2 }
  ],
  "has_more": false,
  "gaps": [
    { "start_ms": 1792575060000, "end_ms": 1792575120000, "reason": "NETWORK", "status": "OPEN",
      "fillable": true }
  ],
  "interval_ms": 60000,
  "range": { "start": "2026-10-20T09:30:00Z", "end": "2026-10-20T09:33:00Z" }
}

(Shape from the source; the values are illustrative.)

  • Gaps are always requested, and travel in their own array as ranges — one entry for a twelve-minute outage or a weekend, merged only where status and reason agree — never as candles with zeroed prices (TestQueryCandles_GapsAreRangesNotPerIntervalMarkers, TestQueryCandles_CoalescingKeepsAClosureApartFromAnOutage).
  • A derived bar made from less than its whole source window carries incomplete (OPEN, FILLING or ACCEPTED); a whole bar has no such field.
  • interval_ms is the stream's bar width, or 0 when its timeframe does not parse.
  • has_more means the window holds more than limit candles; ask again from after the last one.

The gap object

Used by the candles, gaps and accept routes:

Field Meaning
start_ms, end_ms The range, Unix ms.
status OPEN, FILLING, CLOSED, PERMANENT or ACCEPTED.
reason What caused it; OFF_TIME is a market closure, INCOMPLETE a derived bar's mark.
fillable Whether it may take supplied candles — the node's own rule.
fill_refusal Why not, when fillable is false.
accept_action accept or unaccept for a derived bar's INCOMPLETE mark; absent otherwise.

Never derive fillability from reason: a market closure is never fillable, because anything written there would be invented and indistinguishable from a period that traded.

Gaps

GET /api/v1/streams/{stream_id}/gaps

Parameter Default Meaning
start end − 30 days RFC 3339 or Unix ms.
end now
limit 200 Above 1,000 is clamped to 1,000.
cursor next_cursor from the previous page (a gap start in Unix ns).
open_only false Only gaps still open.
exclude_off_time false Drop market closures.

Booleans accept 1, true, TRUE, True or yes.

json
{
  "stream_id": "BTCUSDT:1m:binance",
  "gaps": [ { "start_ms": 1792575060000, "end_ms": 1792575120000, "reason": "NETWORK", "status": "OPEN", "fillable": true } ],
  "summary": { "missing_ms": 60000, "off_time_ms": 0, "count": 1, "open": 1, "off_time": 0, "fillable": 1 },
  "range": { "start": "2026-09-30T09:33:00Z", "end": "2026-10-30T09:33:00Z" },
  "next_cursor": "",
  "has_more": false
}

A gap overlapping the window is returned whole. summary covers the whole window, not the page, with durations clipped to it; missing_ms excludes closed gaps and market closures (TestListGaps_SummaryKeepsClosureAndLossApart). next_cursor is set only when more follow.

POST /api/v1/streams/{stream_id}/gaps/{gap_start}/fill

Writes candles you supply into one gap.

json
{ "candles": [ { "time_ms": 1792575060000, "open": 67104, "high": 67180, "low": 67090, "close": 67171.3, "volume": 133.4 } ] }

Each candle has either time (RFC 3339) or time_ms, not both. The body is at most 4 MiB and 1,000 candles. Every candle is checked before any is sent: on the stream's grid, no duplicate timestamp, valid OHLCV, and inside the named gap. The gap must exist (404) and be fillable (403 with the refusal, for example a market closure). The candles are then written as an acknowledged correction.

json
{ "stream_id": "BTCUSDT:1m:binance", "gap_start": "1792575060000000000", "filled": 1, "gap_remains": false }

gap_remains is true when fewer candles were sent than the gap has slots. Every attempt, accepted or refused, is logged with the user's name (audit: gap_fill). A failure during the write is not a failure to write: the batch may be stored with only the acknowledgement lost. Read the range back before re-sending.

POST /api/v1/streams/{stream_id}/gaps/{gap_start}/autofill

Asks the node to fill one gap with made-up candles.

json
{ "method": "linear" }

method is linear (a line from the previous close to the next open), forward (the previous close repeated) or backward (the next open repeated); made-up candles have zero volume. A market closure is refused with 403. The dashboard asks the node up to 20 times while it reports more to fill, then answers:

json
{ "stream_id": "BTCUSDT:1m:binance", "gap_start": "1792575060000000000", "method": "linear", "filled": 1, "gap_remains": false }

A node refusal of the content (no neighbour to start from, bars only the history route can install) is 422, naming how many candles were filled before it. Re-sending is safe: a repeat fills only what is still missing.

POST /api/v1/streams/{stream_id}/gaps/{gap_start}/accept

json
{ "accept": true }

true marks a derived bar's INCOMPLETE mark ACCEPTED ("known incomplete, keep it"); false puts an accepted mark back to OPEN. The field is required. Anything but an incomplete mark is refused by the node, 422 with its reason. Response: {"stream_id": "…", "gap": {…}}, the mark as it now stands.

Live candles: GET /api/v1/streams/{stream_id}/events

A Server-Sent Events stream (Content-Type: text/event-stream) of a stream's candles: stored history first, then live candles as the node stores them.

  • Authentication is the bearer header, so the browser's built-in EventSource, which cannot send headers, cannot use it; read the stream with fetch instead (the web UI does).
  • Resume point: the Last-Event-ID header, or ?last_event_id=, holding the Unix nanosecond timestamp of the last candle received. The stream starts one nanosecond after it, so the last candle is not repeated. Without one, the history starts at the earliest candle the node stores — the whole stream; a client that wants a window should pass the window's start.
  • At most 8 open event streams per user (counted by user name, across all of a user's sessions); the ninth is 429.

Events:

text
id: 1792575120000000000
event: candles
data: {"stream_id":"BTCUSDT:1m:binance","candles":[{"time":"2026-10-20T09:32:00Z","time_ms":1792575120000,"open":67171.3,"high":67202,"low":67120.45,"close":67140.8,"volume":121.9}],"backfill":true,"live":false}

: ping

event: error
data: {"error":"the storage node ended this subscription"}
Event Meaning
candles One batch. id is its newest candle's timestamp (absent on a batch with none). backfill marks stored history; live marks the first live batch after it; dropped (present when non-zero) counts batches the node discarded because this consumer was too slow — those candles are gone from the feed, recover them with the candles route.
: ping A comment line after 20 seconds of silence, so proxies keep the connection open.
error Why the stream ended; no id, so it is never a resume point. A refusal of the dashboard's own node session says so ("a dashboard configuration problem, not a login problem").

The guarantee across the history-to-live switch is no gap, not no duplicate: a candle stored while history is being sent can arrive on both sides. De-duplicate by timestamp. Behind nginx the response carries X-Accel-Buffering: no so the proxy does not batch events.

dashboard.write_timeout (30 s by default) bounds each write of the stream, not the stream: the handler moves the deadline forward before every event and every : ping, so a client that keeps reading keeps its feed, and one that stops reading is cut within write_timeout of the write it stalled. Keep it above the 20-second heartbeat, or a quiet stream is cut between pings. Until 2026-10-30 every feed was cut at write_timeout (TestStreamEvents_ALiveFeedOutlivesTheServersWriteTimeout). Resume from the last id on any end of the stream regardless.[3]

Cluster metrics

Both routes answer from a background sample of every node, taken every dashboard.cluster_sample_interval (2 s); a rate or percentile is the difference between a node's last two samples, on that node's clock. null means not measured, or no second sample yet, or a restart between samples. 501 when the dashboard does not sample a cluster (the interval is 0); 503 before the first sample or when no node could be reached.

GET /api/v1/metrics/nodes

{"sampled_at": "<RFC 3339>", "age_ms": <int>, "nodes": [ … ]}, one object per node:

Field Meaning
node_id, addr The node.
status ACTIVE, DRAINING or UNAVAILABLE (with error).
primary_partitions, copy_partitions From the partition directory, so known even for an unavailable node.
held_partitions, streams, primary_streams, records, storage_bytes What the node reports holding.
cpu_percent, resident_bytes, disk_total_bytes, disk_free_bytes, uptime_seconds Process and disk.
ingest_candles_per_second, ingest_ticks_per_second, queries_per_second Rates over the sample window.
ingest_latency_p50_seconds, ingest_latency_p99_seconds, query_latency_p50_seconds, query_latency_p99_seconds Percentiles over the sample window.
subscriptions, last_ingest Open subscriptions; time of the last write.

GET /api/v1/metrics/cluster

The cluster added up: sampled_at, age_ms, complete, missing_nodes, nodes, nodes_serving, partitions, streams, records, storage_bytes, subscriptions, and the same rate and percentile fields. streams, records and storage_bytes sum what each node is primary of, so a partition with copies is counted once. complete is false when a node did not answer (it is named in missing_nodes) or has no rate yet.

Headers on every response

Header Value
Content-Security-Policy default-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none' — the API serves no HTML.
X-Content-Type-Options nosniff
Referrer-Policy no-referrer
X-Frame-Options DENY
Cross-Origin-Resource-Policy same-origin
Strict-Transport-Security max-age=31536000; includeSubDomains, only when dashboard.session_cookie_secure is on (the default).

CORS headers are sent only for an Origin listed in dashboard.allowed_origins (empty by default, meaning same-origin only; * is refused): Access-Control-Allow-Methods: GET, POST, OPTIONS, Access-Control-Allow-Headers: Authorization, Content-Type, Access-Control-Max-Age: 600, never Allow-Credentials. Every OPTIONS request is answered 204.

References

Source

Tests

  • TestDocs_TheAPIReferenceMatchesTheRoutes — /docs/operations/docs_test.go.
  • TestDashboard_EveryRouteIsExercisedByATest, TestDashboard_FullAuthenticationFlow, TestDashboard_RejectsARefreshTokenAsABearer — /internal/dashboard.
  • TestHTTP_ProtectedRoutesRequireASession, TestHTTP_WildcardRoutesAlsoAnswer405, TestHTTP_UnknownRouteReturnsJSON, TestHTTP_LoginFailuresAreIndistinguishable, TestHTTP_LogoutSaysTheTokenStaysValid, TestHTTP_CapabilitiesAppliesTheCeiling, TestHTTP_PermissionListsAreArraysNotNull, TestHTTP_RefreshRereadsTheRole, TestHTTP_CORS, TestHTTP_EmptyOriginListAllowsNothing — /internal/dashboard/http_test.go.
  • TestLoginThrottle_StopsOnlineGuessing, TestLoginThrottle_BlocksBeforeHashing, TestLoginThrottle_KeysOnHostNotPort — /internal/dashboard/login_throttle_test.go.
  • TestRefreshCookie_Flags, TestRefreshFlow_ReloadKeepsTheSession, TestRefreshFlow_DisabledMeansNoCookieAndA404 — /internal/dashboard/refresh_test.go.
  • TestAllows_NotConnectedIsNotADenial, TestQueryCandles_EnforcesTheIntersection, TestQueryCandles_GapsAreRangesNotPerIntervalMarkers, TestQueryCandles_LimitIsClampedNotRefused, TestQueryCandles_AnIncompleteBarCarriesItsMark, TestQueryCandles_UpstreamErrorsAreNotAll500, TestQueryCandles_ExpiredUpstreamIsNotA401 — /internal/dashboard/query_test.go.
  • TestListStreams_PagesWithACursor, TestListStreams_APageMissingANodeSaysWhichAndIsNotCached, TestListStreams_ASortedPageAcrossNodesIsRefusedByName, TestStreamDetail_UsesExactMatchNotPaging, TestStreamDetail_NotFoundIs404 — /internal/dashboard.
  • TestListGaps_SummaryKeepsClosureAndLossApart, TestListGaps_MarketClosureIsNeverFillable, TestListGaps_CursorIsEmittedOnlyWhenMoreFollow — /internal/dashboard/gaps_test.go.
  • TestFillGap_FillsARealOutage, TestFillGap_MarketClosureIsRefused, TestFillGap_RefusesCandlesOutsideTheGap, TestFillGap_ValidatesEveryCandleBeforeSendingAny, TestFillGap_UnknownGapIs404, TestAutoFillGap_AsksAgainWhileTheNodeSaysMoreAndStopsAtItsBound, TestAcceptGap_TheNodesRefusalReachesTheOperator — /internal/dashboard.
  • TestStreamEvents_ResumesFromLastEventID, TestStreamEvents_IDIsTheLastCandleTimestamp, TestStreamEvents_ErrorEventHasNoID, TestStreamEvents_HeartbeatOnAQuietStream, TestStreamEvents_LimitIsEnforced, TestStreamEvents_BackfillAndPivotAreVisible, TestStreamEvents_DroppedIsForwarded — /internal/dashboard/stream_test.go.
  • TestMetricsEndpoints_NeedTheListPermission, TestMetricsEndpoints_ServeTheLatestSampleWithItsRates, TestClusterView_CountsACopiedPartitionOnceAndNamesWhatItIsMissing — /internal/dashboard.
  • TestSecurityHeaders_OnEveryResponse, TestSecurityHeaders_HSTSOnlyWhenTheDeploymentIsHTTPS — /internal/dashboard/security_headers_test.go.

Further reading

External

  • Server-sent events, WHATWG HTML Living Standard — https://html.spec.whatwg.org/multipage/server-sent-events.html
  • RFC 6750: The OAuth 2.0 Authorization Framework: Bearer Token Usage, M. Jones and D. Hardt — https://www.rfc-editor.org/rfc/rfc6750
  • RFC 6265bis: Cookies — cookie name prefixes, IETF HTTP Working Group — https://datatracker.ietf.org/doc/draft-ietf-httpbis-rfc6265bis/

  1. handleLogin in /internal/dashboard/http.go; loginFailureWindow, maxLoginFailures, throttleKey and tooManyLogins in /internal/dashboard/login_throttle.go; clientAddr in /internal/dashboard/client_addr.go; TrustedProxies in /internal/config/config.go. ↩︎

  2. RefreshCookieName, newRefreshCookie and handleRefresh in /internal/dashboard/refresh.go and /internal/dashboard/http.go. ↩︎

  3. WriteTimeout passed to http.Server in /internal/dashboard/server.go, default in /internal/config/config.go; writeDeadline, handleStreamEvents and pumpEvents in /internal/dashboard/stream.go; statusRecorder.Unwrap in /internal/dashboard/http.go. ↩︎