go-ipfs-config: feat: add peering service config section
Steven Allen committed
May 25, 2020 at 14:05 UTC
13bcc4da44446d837c2fec15588ac9d1f994ba58
2 files changed
+10
config/config.go
+1
@@ -27,6 +27,7 @@ type Config struct {
27
Swarm SwarmConfig
28
AutoNAT AutoNATConfig
29
Pubsub PubsubConfig
30
+ Peering Peering
31
32
Provider Provider
33
Reprovider Reprovider
config/peering.go
new
+9
@@ -0,0 +1,9 @@
1
+package config
2
+
3
+import "github.com/libp2p/go-libp2p-core/peer"
4
+
5
+// Peering configures the peering service.
6
+type Peering struct {
7
+ // Peer lists all peers with which this peer peers.
8
+ Peers []peer.AddrInfo
9
+}