feedbackwire

package
v1.161.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package feedbackwire assembles who can open a feedback thread's target (#2512) for the people a message names or a thread involves, and the audit logger a portal edit or delete of a message is recorded through (#2514).

The decision is internal/portal/threadreach over the portal's authorization core (internal/portal/access) built from the same stores and administrator rule the portal builds its own from, so a mention, a reply's notifications and a thread route admit the same people. A named person's roles come from the known-users directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wire

func Wire(deps *portal.Deps, src Sources) *threadreach.Reach

Wire builds the decision, hands it to the mention resolver the feedback routes use and the audit logger to the portal, and returns it for the notifier and the MCP feedback tool. It reads the persona resolver, so it runs after the portal's optional dependencies are set.

Types

type Sources

type Sources struct {
	// Directory holds the roles each person last signed in with. nil
	// judges every named person with no roles.
	Directory user.Store
	// Audit records a portal edit or delete. nil records nothing.
	Audit middleware.AuditLogger
	// HasDatabase says mentions are available: they are recorded on thread
	// events, which need one.
	HasDatabase bool
}

Sources is what the assembly reads from the platform.

Jump to

Keyboard shortcuts

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