{"modulePath":"github.com/txn2/mcp-data-platform","version":"v1.167.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package adminwire\n\nPackage adminwire attaches the admin handler's optional stores to its dependencies: the api-gateway catalog store and embed-job queue, the index-jobs reporter, and the memory store the admin memory list reads (#1926). Each is attached only when the deployment has it, so a typed nil never reaches an interface field and a missing store leaves its routes unregistered.\n\nIt is a package of its own rather than another function in the composition root because that root is at its size budget.\n\n## Functions\n\n```go\nfunc MountDatabaseAPIs(mux *http.ServeMux, p *platform.Platform,\n\tauth func(*platform.Platform) func(http.Handler) http.Handler, author func(*http.Request) string,\n)\n```\nMountDatabaseAPIs registers the admin routes over database rows, behind the admin API's authentication (auth): what a persona reaches (#2257), which reads references from the database when there is one, the stored secrets (#2051), the tags on every asset (#2508), and how managed resources are indexed (#2111) where there are resources. author resolves the acting administrator.\n\n```go\nfunc StoreDeps(deps *admin.Deps, p *platform.Platform)\n```\nStoreDeps attaches each optional store p holds to deps.\n\n","path":"github.com/txn2/mcp-data-platform/internal/httpserver/adminwire","name":"adminwire","synopsis":"Package adminwire attaches the admin handler's optional stores to its dependencies: the api-gateway catalog store and embed-job queue, the index-jobs reporter, and the memory store the admin memory list reads (#1926).","isRedistributable":true}
