web3-ipfs-1.0.0.0: IPFS support for Haskell Web3 library.
CopyrightAleksandr Krupenkin 2016-2021
LicenseApache-2.0
Maintainermail@akru.me
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Network.Ipfs.Api.Swarm

Description

Api calls with swarm prefix.

Synopsis

Documentation

swarmPeers :: MonadIO m => IpfsT m SwarmPeersObj Source #

List peers with open connections.

connect :: MonadIO m => Text -> IpfsT m SwarmObj Source #

Open connection to a given address. peerId has to be of the format - ipfsid

disconnect :: MonadIO m => Text -> IpfsT m SwarmObj Source #

Close connection to a given address. peerId has to be of the format - ipfsid

filters :: MonadIO m => IpfsT m SwarmObj Source #

Manipulate address filters.

filterAdd :: MonadIO m => Text -> IpfsT m SwarmObj Source #

Add an address filter. peerId has to be of the format - ip4{IP addr of peer}ipcidr{ip network prefix}

filterRm :: MonadIO m => Text -> IpfsT m SwarmObj Source #

Remove an address filter.