MCPcopy
hub / github.com/rs/zerolog / IPPrefixes

Method IPPrefixes

context.go:526–529  ·  view source on GitHub ↗

IPPrefix adds adds the field key with pfx as a []net.IPNet array of IPv4 or IPv6 Prefix (address and mask) to the context

(key string, pfx []net.IPNet)

Source from the content-addressed store, hash-verified

524
525// IPPrefix adds adds the field key with pfx as a []net.IPNet array of IPv4 or IPv6 Prefix (address and mask) to the context
526func (c Context) IPPrefixes(key string, pfx []net.IPNet) Context {
527 c.l.context = enc.AppendIPPrefixes(enc.AppendKey(c.l.context, key), pfx)
528 return c
529}
530
531// MACAddr adds adds the field key with ha as a net.HardwareAddr MAC address to the context
532func (c Context) MACAddr(key string, ha net.HardwareAddr) Context {

Callers

nothing calls this directly

Calls 2

AppendKeyMethod · 0.65
AppendIPPrefixesMethod · 0.45

Tested by

no test coverage detected