accessreqwire

package
v1.168.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: 16 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 accessreqwire assembles requests for access (#2090) from the platform: the item lookups, the share an approval creates, the emails and the settings section.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(mux *http.ServeMux, p *platform.Platform, d Deps)

Mount registers requests for access: the page and the request a person who cannot open an item makes, the owner's answers, and the admin settings. A deployment without a database or a share store has none.

Types

type Deps

type Deps struct {
	Wrap      func(http.Handler) http.Handler
	IsAdmin   func([]string) bool
	Notify    *notifydelivery.Handle
	AdminWrap func(http.Handler) http.Handler
	Author    func(*http.Request) string
}

Deps is what the routes are mounted with: the portal's authentication (Wrap) and administrator rule, the notification handle the emails go through, and the admin API's authentication (AdminWrap, nil mounts no settings routes) with the author a settings write is recorded under.

Jump to

Keyboard shortcuts

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