Documentation ¶
Index ¶
- func DefaultQUICConfig() *quic.Config
- func ListenLoopback(network string, port uint16) ([]net.Listener, error)
- func ListenPacketLoopback(network string, port uint16) ([]net.PacketConn, error)
- func LookupLoopbackIP() ([]net.IP, error)
- type BackPressureListener
- type ExternalPublicIPResolver
- type QUICConn
- type QUICListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultQUICConfig ¶ added in v0.4.17
func DefaultQUICConfig() *quic.Config
func ListenLoopback ¶
Listen announces on the loopback network address.
The network must be "tcp", "tcp4" or "tcp6".
func ListenPacketLoopback ¶ added in v0.4.17
func ListenPacketLoopback(network string, port uint16) ([]net.PacketConn, error)
func LookupLoopbackIP ¶
LookupLoopbackIP looks up loopback interfaces on the host using the local resolver. It returns a slice of that host's IPv6 and IPv4 addresses.
Types ¶
type BackPressureListener ¶ added in v0.4.20
type ExternalPublicIPResolver ¶ added in v0.4.15
type ExternalPublicIPResolver struct {
// contains filtered or unexported fields
}
ExternalPublicIPResolver is a helper struct that allows to resolve caller's public IP address.
func NewExternalPublicIPResolver ¶ added in v0.4.15
func NewExternalPublicIPResolver(url string) *ExternalPublicIPResolver
NewExternalPublicIPResolver constructs a new external public IP resolver.
An optional "url" argument specifies the server URL, which can give the caller's public IP in a body as a string.
type QUICConn ¶ added in v0.4.17
type QUICConn struct { quic.Stream // contains filtered or unexported fields }
func NewQUICConn ¶ added in v0.4.17
func (*QUICConn) RemoteAddr ¶ added in v0.4.17
type QUICListener ¶ added in v0.4.17
type QUICListener struct {
quic.Listener
}
func ListenQUIC ¶ added in v0.4.17
func ListenQUIC(network, address string, tlsConfig *tls.Config, config *quic.Config) (*QUICListener, error)
Click to show internal directories.
Click to hide internal directories.