Documentation ¶ Index ¶ Constants func NewMuxedConn(m *yamux.Session) network.MuxedConn type Transport func (t *Transport) Config() *yamux.Config func (t *Transport) NewConn(nc net.Conn, isServer bool, scope network.PeerScope) (network.MuxedConn, error) Constants ¶ View Source const ID = "/yamux/1.0.0" Variables ¶ This section is empty. Functions ¶ func NewMuxedConn ¶ func NewMuxedConn(m *yamux.Session) network.MuxedConn NewMuxedConn constructs a new MuxedConn from a yamux.Session. Types ¶ type Transport ¶ type Transport yamux.Config Transport implements mux.Multiplexer that constructs yamux-backed muxed connections. var DefaultTransport *Transport func (*Transport) Config ¶ func (t *Transport) Config() *yamux.Config func (*Transport) NewConn ¶ func (t *Transport) NewConn(nc net.Conn, isServer bool, scope network.PeerScope) (network.MuxedConn, error) Source Files ¶ View all Source files conn.go stream.go transport.go Click to show internal directories. Click to hide internal directories.