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

Method IPAddrs

context.go:514–517  ·  view source on GitHub ↗

IPAddrs adds the field key with ip as a []net.IP array of IPv4 or IPv6 Address to the context

(key string, ip []net.IP)

Source from the content-addressed store, hash-verified

512
513// IPAddrs adds the field key with ip as a []net.IP array of IPv4 or IPv6 Address to the context
514func (c Context) IPAddrs(key string, ip []net.IP) Context {
515 c.l.context = enc.AppendIPAddrs(enc.AppendKey(c.l.context, key), ip)
516 return c
517}
518
519// IPPrefix adds adds the field key with pfx as a []net.IPNet IPv4 or IPv6 Prefix (address and mask) to the context
520func (c Context) IPPrefix(key string, pfx net.IPNet) Context {

Callers

nothing calls this directly

Calls 2

AppendKeyMethod · 0.65
AppendIPAddrsMethod · 0.45

Tested by

no test coverage detected