auditredact

package
v1.161.0 Latest Latest
Warning

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

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

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