Documentation
¶
Overview ¶
Package callapi serves the /api/v1/admin/calls surface: every data-access call the platform recorded, across every caller, and the review queue of the ones worth publishing.
It is the operator face of the catalog the portal surface in internal/portal/callapi reads (internal/platform/callrecord). The read model is one; what differs is the scope, and one facet the portal deliberately does not offer: an operator can narrow the list to one person's calls, because the operator surface is unrestricted by design and a user list that carried a user facet would be a filter whose value is always overwritten anyway.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Calls is the call catalog. Nil leaves the routes unregistered.
Calls Store
// Promoter publishes a reviewed record. Nil leaves the two action routes
// unregistered.
Promoter *callrecord.Promoter
// Actor names the operator performing an action, for the record of who
// promoted or declined it. Supplied by the admin handler, which owns the
// authenticated identity.
Actor func(*http.Request) string
}
Config carries what the routes need.
type Store ¶
type Store = callrecord.Store
Store reads call records. Aliased to the catalog's own declaration rather than restated so the two cannot drift.