Documentation ¶
Index ¶
- func ListenConfigWithOSTCPKeepAlive() *net.ListenConfig
- func ListenWithOSTCPKeepAlive(network, address string) (net.Listener, error)
- func TLSListenWithOSTCPKeepAlive(network, laddr string, config *tls.Config) (net.Listener, error)
- type ConnectionSet
- type ListenerMetrics
- type NewConnectionSet
- type OnceCloseListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenConfigWithOSTCPKeepAlive ¶
func ListenConfigWithOSTCPKeepAlive() *net.ListenConfig
Types ¶
type ConnectionSet ¶ added in v17.5.0
type ListenerMetrics ¶ added in v17.5.0
type ListenerMetrics struct { Log *slog.Logger NewSet NewConnectionSet GCPeriod time.Duration ErrRep errz.ErrReporter // contains filtered or unexported fields }
func (*ListenerMetrics) RunGC ¶ added in v17.5.0
func (m *ListenerMetrics) RunGC(ctx context.Context)
type NewConnectionSet ¶ added in v17.5.0
type NewConnectionSet func(name string, ttl time.Duration) (ConnectionSet, error)
type OnceCloseListener ¶ added in v17.5.0
OnceCloseListener wraps a net.Listener, protecting it from multiple Close calls.
func (*OnceCloseListener) Close ¶ added in v17.5.0
func (oc *OnceCloseListener) Close() error
Click to show internal directories.
Click to hide internal directories.