Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertPeers(peers []string) []peer.AddrInfo
- func DumpDhtDS(n *P2PNode)
- func FindPeer(c *cli.Context, n *P2PNode, peerid string)
- func FindProviders(n *P2PNode, key string)
- func GetKeyValue(c *cli.Context, n *P2PNode, key string)
- func PingHost(ctx context.Context, node *P2PNode, peerid string)
- func ProvideCid(n *P2PNode, key string)
- func PutKeyValue(n *P2PNode, key, value string)
- func QueryPeer(c *cli.Context, n *P2PNode, key string)
- func RunCli(cmds cli.Commands, f func(map[string]interface{}))
- func RunP2PNodeCLI(node *P2PNode, args ...cli.Commands)
- func ServeTest(ctx context.Context, node *P2PNode, limit int64)
- func ServeTest2(ctx context.Context, limit int64)
- type P2PNode
Constants ¶
View Source
const TestProtocol = "/test/0.0.1"
Variables ¶
View Source
var ( ErrBadArgument = fmt.Errorf("bad argument") ErrQuitCLI = fmt.Errorf("quitting cli") )
View Source
var (
IPFS_PEERS = ConvertPeers([]string{
"/ip4/47.100.12.133/tcp/4001/p2p/QmQ4Z47LeGLJ8SanLPaBF3rWWfqKqmanAkCs9CgeYF2TAp",
})
)
Functions ¶
func ConvertPeers ¶ added in v1.2.0
func FindProviders ¶
func GetKeyValue ¶
func ProvideCid ¶
func PutKeyValue ¶
func RunP2PNodeCLI ¶ added in v1.0.3
func RunP2PNodeCLI(node *P2PNode, args ...cli.Commands)
func ServeTest2 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.