redact

package
v0.2.36 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package redact implements the core of span-redact: it reads intermediate schema records and sets the fulltext field to the empty string. This can be done with jq and del as well, but redacting in parallel is a bit faster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg Config, r io.Reader, w io.Writer) error

Run reads intermediate schema records from r, sets the fulltext field to the empty string and writes the result to w.

Types

type Config

type Config struct {
	BatchSize  int
	NumWorkers int
}

Config holds the tunables for a redact run.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration.

Jump to

Keyboard shortcuts

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