{"modulePath":"github.com/txn2/mcp-data-platform","version":"v1.171.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package collectionsweepwire\n\nPackage collectionsweepwire adds the collection item sweep (#2752) to the platform's retention sweeps. It is assembled in the HTTP layer because the sweep judges each item with the decision the portal's feedback routes are given (internal/portal/threadreach): the owner's roles from the known-users directory, the persona they resolve to, and the portal's authorization core. The directory records people, never a key, so an owner that is a standalone API key's identity (apikey:\\\u003cname\u003e) is judged by the roles that key holds, as it was when it added the item.\n\n## Functions\n\n```go\nfunc Wire(p Platform, reach *threadreach.Reach, shares any)\n```\nWire adds the sweep when the database, the decision and a share store that lists the collections granting an asset are all present.\n\n## Types\n\n```go\ntype Platform interface {\n\tDB() *sql.DB\n\tAPIKeyAuthenticator() *auth.APIKeyAuthenticator\n\tAddCollectionItemSweep(remove func(ctx context.Context) (int64, error))\n}\n```\nPlatform is what the sweep is added to.\n\n","path":"github.com/txn2/mcp-data-platform/internal/httpserver/collectionsweepwire","name":"collectionsweepwire","synopsis":"Package collectionsweepwire adds the collection item sweep (#2752) to the platform's retention sweeps.","isRedistributable":true}
