Documentation
¶
Overview ¶
Package listener ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Listener ¶
type Listener struct { // Network is the network type to use. Network Network // Address is the address to bind to. Address string // KeepAlive is a duration to keep the connection alive for. // Only used for NetworkTCP, NetworkTCP4, and NetworkTCP6. KeepAlive time.Duration // CertPath is a path to a SSL certificate. CertPath string // KeyPath is a path to a SSL private key. KeyPath string // Metrics determines if a metrics endpoint will be exposed on this listener. Metrics string }
Listener .
type TCPKeepAliveListener ¶
type TCPKeepAliveListener struct { *net.TCPListener // KeepAlive . KeepAlive time.Duration }
TCPKeepAliveListener is a TCPListener with a keep alive.
Click to show internal directories.
Click to hide internal directories.