Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ParseListeners ¶
parseListeners splits the list of listen addresses passed in addrs into IPv4 and IPv6 slices and returns them. This allows easy creation of the listeners on the correct interface "tcp4" and "tcp6". It also properly detects addresses which apply to "all interfaces" and adds the address to both slices.
Types ¶
type ListenAddr ¶ added in v0.10.1
type ListenAddr struct {
// contains filtered or unexported fields
}
func (ListenAddr) Network ¶ added in v0.10.1
func (a ListenAddr) Network() string
func (ListenAddr) String ¶ added in v0.10.1
func (a ListenAddr) String() string
type ProxiedAddr ¶
func (*ProxiedAddr) Network ¶
func (a *ProxiedAddr) Network() string
func (*ProxiedAddr) String ¶
func (a *ProxiedAddr) String() string
Click to show internal directories.
Click to hide internal directories.