Documentation ¶
Index ¶
- func DefaultAddresses() (netip.Addr, netip.Addr)
- type Anonymizer
- func (a *Anonymizer) AnonymizeDNSLogLine(logEntry string) string
- func (a *Anonymizer) AnonymizeDomain(domain string) string
- func (a *Anonymizer) AnonymizeIP(ip netip.Addr) netip.Addr
- func (a *Anonymizer) AnonymizeIPString(ip string) string
- func (a *Anonymizer) AnonymizeSchemeURI(text string) string
- func (a *Anonymizer) AnonymizeString(str string) string
- func (a *Anonymizer) AnonymizeURI(uri string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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
Click to show internal directories.
Click to hide internal directories.