redactor

package
v0.0.0-...-fc9d343 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedactingSender

func NewRedactingSender(sender send.Sender, opts RedactionOptions) send.Sender

NewRedactingSender wraps the provided sender with a sender that redacts expansions in accordance with the reaction options.

Types

type RedactionOptions

type RedactionOptions struct {
	// Expansions defines the values to redact.
	Expansions *util.DynamicExpansions
	// Redacted specifies the names of expansions to redact the values for.
	// [globals.ExpansionsToRedact] are always redacted.
	Redacted []string
}

RedactionOptions configures a redacting sender.

Jump to

Keyboard shortcuts

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