anonymize

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAddresses

func DefaultAddresses() (netip.Addr, netip.Addr)

Types

type Anonymizer

type Anonymizer struct {
	// contains filtered or unexported fields
}

func NewAnonymizer

func NewAnonymizer(startIPv4, startIPv6 netip.Addr) *Anonymizer

func (*Anonymizer) AnonymizeDNSLogLine

func (a *Anonymizer) AnonymizeDNSLogLine(logEntry string) string

AnonymizeDNSLogLine anonymizes domain names in DNS log entries by replacing them with a random string.

func (*Anonymizer) AnonymizeDomain

func (a *Anonymizer) AnonymizeDomain(domain string) string

func (*Anonymizer) AnonymizeIP

func (a *Anonymizer) AnonymizeIP(ip netip.Addr) netip.Addr

func (*Anonymizer) AnonymizeIPString

func (a *Anonymizer) AnonymizeIPString(ip string) string

func (*Anonymizer) AnonymizeRoute added in v0.28.7

func (a *Anonymizer) AnonymizeRoute(route string) string

AnonymizeRoute anonymizes a route string by replacing IP addresses with anonymized versions and domain names with random strings.

func (*Anonymizer) AnonymizeSchemeURI

func (a *Anonymizer) AnonymizeSchemeURI(text string) string

AnonymizeSchemeURI finds and anonymizes URIs with stun, stuns, turn, and turns schemes.

func (*Anonymizer) AnonymizeString

func (a *Anonymizer) AnonymizeString(str string) string

func (*Anonymizer) AnonymizeURI

func (a *Anonymizer) AnonymizeURI(uri string) string

Jump to

Keyboard shortcuts

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