auditredact

package
v1.170.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 1 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 auditredact carries the values one request must never leave in an audit row (#2555): an endpoint request's application cookies, which its handler may pass to the platform calls it makes. The request's context holds them, and the audit middleware replaces them wherever they appear in a call's parameters and error before anything reads the event.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func With

func With(ctx context.Context, red Redactor) context.Context

With has every audit row written for a call made under ctx replace red's values.

Types

type Redactor

type Redactor interface {
	String(s string) string
	Empty() bool
}

Redactor replaces the values it holds in a string.

func From

func From(ctx context.Context) Redactor

From is the redactor ctx holds, nil for none or an empty one.

Jump to

Keyboard shortcuts

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