Documentation
¶
Overview ¶
Package sessionapi serves the /api/v1/admin/sessions surface: the sessions the audit log has recorded, and one session opened in full — its summary, the assets and insights it produced, and the ordered record of its calls.
It is a decomposition seam of pkg/admin (which sits at its package size budget); the parent registers it on the admin mux, so every route here is already behind the admin persona gate. The rows carry the caller's identity and the purpose stated for each call, because that is what an operator reading a session after the fact needs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Sessions is the session read model over the audit log.
Sessions Store
}
Config carries what the routes need. A nil Sessions leaves them unregistered: without a database there is no audit history to derive a session from.
type Store ¶
type Store = sessionview.Store
Store reads sessions. Aliased to the read model's own declaration rather than restated so the two cannot drift.