Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Libp2pConnector ¶
type Libp2pConnector struct { Host host.Host ServerAddress *multiaddr.Multiaddr Peer *peer.AddrInfo }
func NewLibp2pConnector ¶
func NewLibp2pConnector(serverAddress string, opts ...libp2p.Option) (*Libp2pConnector, error)
func (*Libp2pConnector) Disconnect ¶
func (lc *Libp2pConnector) Disconnect() error
func (*Libp2pConnector) OpenStream ¶
type Libp2pStream ¶
type Libp2pStream struct {
// contains filtered or unexported fields
}
func (*Libp2pStream) Close ¶
func (ls *Libp2pStream) Close() error
func (*Libp2pStream) Context ¶
func (ls *Libp2pStream) Context() context.Context
Click to show internal directories.
Click to hide internal directories.