apprhttp

package
v1.153.2 Latest Latest
Warning

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

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

Documentation

Overview

Package apprhttp serves the Approvals queue on the portal (#2437, #2494): a person's own requests, every request for an administrator, filing one and deciding one, through the service manage_approval uses and under its rules. Every write is audited as a manage_approval call from the portal.

Index

Constants

View Source
const Prefix = "/api/v1/portal/approvals"

Prefix opens every route.

Variables

This section is empty.

Functions

func Register

func Register(mux *http.ServeMux, wrap func(http.Handler) http.Handler, cfg Config)

Register mounts the routes behind wrap, the portal's authentication.

Types

type Config

type Config struct {
	Service *approval.Service
	// Actor is who made a request, nil for none.
	Actor func(r *http.Request) *approval.Actor
	Audit middleware.AuditLogger
}

Config is what the routes use.

Jump to

Keyboard shortcuts

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