accessreqwire

package
v1.160.0 Latest Latest
Warning

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

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

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