Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressParts ¶
func GetSourceIP ¶
GetSourceIP returns the ip address used to access target:port If target is the empty string then the default gateway ip is used. If the port is 0, then 80 is used by default.
func HostAddresses ¶
HostAddresses returns all available ip addresses from all interfaces
func IsAddressReachable ¶
func PreferNonPrivateIP ¶
Types ¶
type ListenerTimer ¶
type ListenerTimer struct { net.Listener C <-chan time.Time // contains filtered or unexported fields }
func NewListenerTimer ¶
func NewListenerTimer(l net.Listener, d time.Duration) *ListenerTimer
func (*ListenerTimer) Addr ¶
func (l *ListenerTimer) Addr() net.Addr
func (*ListenerTimer) Close ¶
func (l *ListenerTimer) Close() error
Click to show internal directories.
Click to hide internal directories.