Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DetectOpts ¶
type DetectOpts struct { // DetectIPv6 enables IPv6 detection. DetectIPv6 bool // DetectPrivate enables private address detection. DetectPrivate bool // AllowRemoteDetection enables remote address detection. AllowRemoteDetection bool // SkipInterfaces contains a list of interfaces to skip. SkipInterfaces []string }
DetectOpts contains options for endpoint detection.
type PrefixList ¶
func Detect ¶
func Detect(ctx context.Context, opts DetectOpts) (PrefixList, error)
Detect detects endpoints for this machine.
func (PrefixList) AddrStrings ¶
func (a PrefixList) AddrStrings() []string
func (PrefixList) Len ¶
func (a PrefixList) Len() int
func (PrefixList) Less ¶
func (a PrefixList) Less(i, j int) bool
Sort by IPv4 addresses first, then IPv6 addresses.
func (PrefixList) Strings ¶
func (a PrefixList) Strings() []string
func (PrefixList) Swap ¶
func (a PrefixList) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.