Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MuxAdapter ¶
type MuxAdapter interface { AdaptServer(net.Conn) (pipe.Conn, error) AdaptClient(net.Conn) (pipe.Conn, error) }
MuxAdapter can adapt a go net.Conn into a pipe.Conn
type MuxConfig ¶
MuxConfig is a MuxAdapter that uses github.com/hashicorp/yamux
func (MuxConfig) AdaptClient ¶
AdaptClient is called by the dialer
type NetDialer ¶
type NetDialer interface {
DialContext(c context.Context, network, address string) (net.Conn, error)
}
NetDialer can produce a standard library Dialer
type NetListener ¶
type NetListener interface {
Listen(c context.Context, network, address string) (net.Listener, error)
}
NetListener can produce a standard library Listener
type Transport ¶
type Transport struct { MuxAdapter NetListener NetDialer }
Transport for any pipe.Conn
Click to show internal directories.
Click to hide internal directories.