Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOriginAddrInvalidAddrChunk = errors.New("invalid address chunk in origin address")
View Source
var ErrOriginAddrInvalidPort = errors.New("invalid port in origin address")
Functions ¶
This section is empty.
Types ¶
type NeighborIPAddresses ¶
type NeighborIPAddresses struct {
IPs map[*IP]struct{}
}
func NewNeighborIPAddresses ¶
func NewNeighborIPAddresses() *NeighborIPAddresses
func (*NeighborIPAddresses) Add ¶
func (ips *NeighborIPAddresses) Add(ip *IP)
func (*NeighborIPAddresses) GetPreferredAddress ¶
func (ips *NeighborIPAddresses) GetPreferredAddress(preferIPv6 bool) *IP
func (*NeighborIPAddresses) Len ¶
func (ips *NeighborIPAddresses) Len() int
func (*NeighborIPAddresses) Remove ¶
func (ips *NeighborIPAddresses) Remove(ip *IP)
func (*NeighborIPAddresses) Union ¶ added in v0.2.2
func (ips *NeighborIPAddresses) Union(other *NeighborIPAddresses) *NeighborIPAddresses
type OriginAddress ¶
OriginAddress represents a tuple of a IP or hostname, port and IPv6 preference
func ParseOriginAddress ¶
func ParseOriginAddress(s string) (*OriginAddress, error)
func (*OriginAddress) String ¶
func (ra *OriginAddress) String() string
Click to show internal directories.
Click to hide internal directories.