Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler serves GET /api/v1/ledger: the orchestrating agent's declared plan as JSON ({"leases":[...],"overlaps":[...]}), in the order the rows were recorded, so the console's lease drawer can join them to agent activity by lease id.
The overlaps are derived on every read and stored nowhere (types.NewLeaseReport), which is why this handler needs nothing from the store but its rows.
Read-only, and the rows it serves are DECLARATIONS. Nothing magus does is gated on them; the console renders what an agent said it intended, never a verdict magus reached. See types.Lease.
func NewHandler ¶
NewHandler returns the GET /api/v1/ledger handler reading from src.