mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-05 23:13:09 +00:00
Add p2p documentation
This commit is contained in:
parent
9fceeac33f
commit
e0ee7f707a
10
README.md
10
README.md
@ -220,6 +220,16 @@ err := node.Fetch(cid)
|
|||||||
|
|
||||||
The `Fetch` method download remote data into your local node.
|
The `Fetch` method download remote data into your local node.
|
||||||
|
|
||||||
|
### P2P
|
||||||
|
|
||||||
|
You can connect to a node using the `peerId` or the `listenAddresses`:
|
||||||
|
|
||||||
|
```go
|
||||||
|
peerId := "..."
|
||||||
|
addrs := ["..."]
|
||||||
|
err := node1.Connect(peerId, addrs)
|
||||||
|
```
|
||||||
|
|
||||||
### Debug
|
### Debug
|
||||||
|
|
||||||
Several methods are available to debug your node:
|
Several methods are available to debug your node:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user