Documentation ¶
Index ¶
- func DhtGet(ctx context.Context, key []byte, proto protocol.ID, ma multiaddr.Multiaddr) (*recpb.Record, error)
- func DhtGetClosestPeers(ctx context.Context, key []byte, proto protocol.ID, ma multiaddr.Multiaddr) ([]*peer.AddrInfo, error)
- func DhtGetProvs(ctx context.Context, key []byte, proto protocol.ID, ma multiaddr.Multiaddr) ([]*peer.AddrInfo, error)
- func DhtPing(ctx context.Context, proto protocol.ID, ma multiaddr.Multiaddr) error
- func DhtProtocolMessenger(ctx context.Context, proto protocol.ID, ai *peer.AddrInfo) (*dhtpb.ProtocolMessenger, error)
- func DhtPut(ctx context.Context, key, value []byte, proto protocol.ID, ...) error
- func GetBitswapCID(root cid.Cid, ai *peer.AddrInfo) error
- func Ping(ctx context.Context, forceRelay bool, p *peer.AddrInfo) error
- type BsCheckOutput
- type IdentifyInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DhtGetClosestPeers ¶
func DhtGetProvs ¶
func DhtProtocolMessenger ¶
func GetBitswapCID ¶
Types ¶
type BsCheckOutput ¶
func CheckBitswapCID ¶
func CheckBitswapCID(ctx context.Context, h host.Host, c cid.Cid, ma multiaddr.Multiaddr, getBlock bool) (*BsCheckOutput, error)
Passing a libp2p host is optional. Otherwise a temporary host will be created. When passing a host, it should be only connceted to the passed multiaddr
func (*BsCheckOutput) MarshalJSON ¶
func (o *BsCheckOutput) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.