{"modulePath":"github.com/txn2/mcp-data-platform","version":"v1.167.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package mapwire\n\nPackage mapwire assembles the maps service (#2068) from the platform: the settings and region stores, a bucket client per S3 connection the settings name, the outbound client a fetch reads its source through, and the refresh of the maps knowledge page when what it lists changes.\n\n## Functions\n\n```go\nfunc BucketOf(p *platform.Platform) maps.ResolvedBucket\n```\nBucketOf names the bucket archives go to under s: its own, or the managed-resources bucket.\n\n## Types\n\n```go\ntype Maps struct {\n\t// contains filtered or unexported fields\n}\n```\nMaps is the assembled maps surface: the service, and the platform its admin routes are mounted for. A nil Maps (no database) mounts and runs nothing.\n\n```go\nfunc Build(p *platform.Platform) *Maps\n```\nBuild returns the maps surface, or nil without a database.\n\n```go\nfunc (m *Maps) Mount(mux *http.ServeMux, adminAuth func() func(http.Handler) http.Handler, author func(*http.Request) string)\n```\nMount registers the public archive routes and, when the admin API is on, the settings routes behind its authentication. Both are registered ahead of the portal UI's catch-all by the caller.\n\n```go\nfunc (m *Maps) SiteCheck() func(*http.Request) bool\n```\nSiteCheck is what the listener's CORS layer serves the public map routes by (#2393): the platform itself and the sites the maps settings allow. A deployment with no maps surface checks nothing.\n\n```go\nfunc (m *Maps) Start(ctx context.Context)\n```\nStart runs the fetch loop.\n\n```go\nfunc (m *Maps) Stop()\n```\nStop ends the fetch loop.\n\n","path":"github.com/txn2/mcp-data-platform/internal/httpserver/mapwire","name":"mapwire","synopsis":"Package mapwire assembles the maps service (#2068) from the platform: the settings and region stores, a bucket client per S3 connection the settings name, the outbound client a fetch reads its source through, and the refresh of the maps knowledge page when what it lists changes.","isRedistributable":true}
