IPPrefix adds the field key with pfx as a net.IPNet IPv4 or IPv6 Prefix (address and mask) to the event
(key string, pfx net.IPNet)
| 893 | |
| 894 | // IPPrefix adds the field key with pfx as a net.IPNet IPv4 or IPv6 Prefix (address and mask) to the event |
| 895 | func (e *Event) IPPrefix(key string, pfx net.IPNet) *Event { |
| 896 | if e == nil { |
| 897 | return e |
| 898 | } |
| 899 | e.buf = enc.AppendIPPrefix(enc.AppendKey(e.buf, key), pfx) |
| 900 | return e |
| 901 | } |
| 902 | |
| 903 | // IPPrefixes the field key with pfx as a net.IPNet array of IPv4 or IPv6 Prefixes (address and mask) to the event |
| 904 | func (e *Event) IPPrefixes(key string, pfx []net.IPNet) *Event { |