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.
Click to show internal directories.
Click to hide internal directories.