Documentation ¶
Index ¶
- func NewMplexPeer(config multiplexer.Config) (multiplexer.Peer, error)
- func NewQuicPeer(config multiplexer.Config) (multiplexer.Peer, error)
- func NewYamuxPeer(config multiplexer.Config) (multiplexer.Peer, error)
- func QUICConfig() *quic.Config
- func WrapQUIC(session quic.Session, stream quic.Stream) net.Conn
- type Mplex
- func (p *Mplex) Addr() net.Addr
- func (p *Mplex) Bidirectional(ctx context.Context, conn net.Conn, link multiplexer.Link) (<-chan error, error)
- func (p *Mplex) Bye() error
- func (p *Mplex) Direct(ctx context.Context, link multiplexer.Link) (net.Conn, error)
- func (p *Mplex) Handle() <-chan multiplexer.LinkConnection
- func (p *Mplex) Initiator() bool
- func (p *Mplex) Messaging(ctx context.Context) (net.Conn, error)
- func (p *Mplex) NotifyClose() <-chan struct{}
- func (p *Mplex) Null(ctx context.Context)
- func (p *Mplex) Peer() uint64
- func (p *Mplex) Protocol() protocol.Protocol
- func (p *Mplex) Start(ctx context.Context)
- type QUIC
- func (p *QUIC) Addr() net.Addr
- func (p *QUIC) Bidirectional(ctx context.Context, conn net.Conn, link multiplexer.Link) (<-chan error, error)
- func (p *QUIC) Bye() error
- func (p *QUIC) Direct(ctx context.Context, link multiplexer.Link) (net.Conn, error)
- func (p *QUIC) Handle() <-chan multiplexer.LinkConnection
- func (p *QUIC) Initiator() bool
- func (p *QUIC) Messaging(ctx context.Context) (net.Conn, error)
- func (p *QUIC) NotifyClose() <-chan struct{}
- func (p *QUIC) Null(ctx context.Context)
- func (p *QUIC) Peer() uint64
- func (p *QUIC) Protocol() protocol.Protocol
- func (p *QUIC) Start(ctx context.Context)
- type Yamux
- func (p *Yamux) Addr() net.Addr
- func (p *Yamux) Bidirectional(ctx context.Context, conn net.Conn, link multiplexer.Link) (<-chan error, error)
- func (p *Yamux) Bye() error
- func (p *Yamux) Direct(ctx context.Context, link multiplexer.Link) (net.Conn, error)
- func (p *Yamux) Handle() <-chan multiplexer.LinkConnection
- func (p *Yamux) Initiator() bool
- func (p *Yamux) Messaging(ctx context.Context) (net.Conn, error)
- func (p *Yamux) NotifyClose() <-chan struct{}
- func (p *Yamux) Null(ctx context.Context)
- func (p *Yamux) Peer() uint64
- func (p *Yamux) Protocol() protocol.Protocol
- func (p *Yamux) Start(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMplexPeer ¶
func NewMplexPeer(config multiplexer.Config) (multiplexer.Peer, error)
func NewQuicPeer ¶
func NewQuicPeer(config multiplexer.Config) (multiplexer.Peer, error)
func NewYamuxPeer ¶
func NewYamuxPeer(config multiplexer.Config) (multiplexer.Peer, error)
func QUICConfig ¶
func QUICConfig() *quic.Config
Types ¶
type Mplex ¶
type Mplex struct {
// contains filtered or unexported fields
}
Mplex is a Peer implementation using libp2p's mplex
func (*Mplex) Bidirectional ¶
func (*Mplex) Handle ¶
func (p *Mplex) Handle() <-chan multiplexer.LinkConnection
func (*Mplex) NotifyClose ¶
func (p *Mplex) NotifyClose() <-chan struct{}
type QUIC ¶
type QUIC struct {
// contains filtered or unexported fields
}
func (*QUIC) Bidirectional ¶
func (*QUIC) Handle ¶
func (p *QUIC) Handle() <-chan multiplexer.LinkConnection
func (*QUIC) NotifyClose ¶
func (p *QUIC) NotifyClose() <-chan struct{}
type Yamux ¶
type Yamux struct {
// contains filtered or unexported fields
}
Yamux is a Peer implementation using hashicorp's Yamux
func (*Yamux) Bidirectional ¶
func (*Yamux) Handle ¶
func (p *Yamux) Handle() <-chan multiplexer.LinkConnection
func (*Yamux) NotifyClose ¶
func (p *Yamux) NotifyClose() <-chan struct{}
Click to show internal directories.
Click to hide internal directories.