Help us shape the future of Go! Take the 2026 Go Developer Survey

callapi

package
v1.130.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

func Register

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

Register mounts the operator call routes on mux.

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.

Jump to

Keyboard shortcuts

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