collectionsweepwire

package
v1.167.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package 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:<name>) is judged by the roles that key holds, as it was when it added the item.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wire

func Wire(p Platform, reach *threadreach.Reach, shares any)

Wire adds the sweep when the database, the decision and a share store that lists the collections granting an asset are all present.

Types

type Platform

type Platform interface {
	DB() *sql.DB
	APIKeyAuthenticator() *auth.APIKeyAuthenticator
	AddCollectionItemSweep(remove func(ctx context.Context) (int64, error))
}

Platform is what the sweep is added to.

Jump to

Keyboard shortcuts

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