support

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package support connects authenticated frontend requests to the owner's bounded diagnostics recorder. Bodies are sampled only during a capture.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Seen

func Seen(r *http.Request, rec *diagnostics.Recorder, protocol string, user *frontend.Viewer, device frontend.Device)

Seen is called only after the adapter has authenticated the viewer and checked its device binding. Raw credentials never cross this interface.

func Sighting

func Sighting(rec *diagnostics.Recorder, protocol string, device frontend.Device)

Sighting feeds the owner device picker without retaining request data.

func Wrap

func Wrap(rec *diagnostics.Recorder, protocol string, authenticate func(*http.Request) (*frontend.Viewer, frontend.Device), safePath func(string) string, next http.Handler) http.Handler

Wrap leaves the writer untouched outside an active recording. Authentication and the device binding are checked before a response can be sampled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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