sessionapi

package
v1.122.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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

func Register

func Register(mux *http.ServeMux, cfg Config)

Register mounts the session routes on mux. Every route is read-only.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL