normalize

package
v1.167.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package normalize canonicalizes NormalizedEvent fields so downstream stages (dedup, aggregate) operate on stable, comparable values.

Canonicalization is intentionally narrow:

  • IPv6 addresses are lowercased and ::ffff:v4 is unwrapped to v4.
  • Usernames are split into Username + Domain when "@" is present.
  • Empty strings stay empty (no synthetic placeholders).

No DNS lookups. No remote enrichment. No state. The package is pure-function and stdlib-only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Canonicalize

Canonicalize returns a new NormalizedEvent with canonical IP and identity fields. The input is not mutated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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