1
package dsn
2
3
import (
4
"net"
5
)
6
7
// NameIP represents a name and possibly IP, e.g. representing a connection destination.
8
type NameIP struct {
9
Name string
10
IP net.IP
11
}
12
13
func (n NameIP) IsZero() bool {
14
return n.Name == "" && n.IP == nil
15
}
16