Documentation ¶
Overview ¶
Package netadaptor implements an adaptor from transport.AuthenticatedListener to net.Listener.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func New ¶
func New(authListener transport.AuthenticatedListener, l Logger) *Listener
Consume the given authListener and wrap it as a *Listener, which implements net.Listener. The returned net.Listener must be closed. The wrapped authListener is closed when the returned net.Listener is closed.
Click to show internal directories.
Click to hide internal directories.