This repository was archived by the owner on Mar 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ var DefaultBootstrapAddresses = []string{
19
19
"/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa" ,
20
20
"/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb" ,
21
21
"/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt" ,
22
- "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ" , // mars.i.ipfs.io
22
+ "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ" , // mars.i.ipfs.io
23
23
"/ip4/104.131.131.82/udp/4001/quic/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ" , // mars.i.ipfs.io
24
24
}
25
25
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ type Config struct {
33
33
Reprovider Reprovider
34
34
Experimental Experiments
35
35
Plugins Plugins
36
+ Pinning Pinning
36
37
}
37
38
38
39
const (
Original file line number Diff line number Diff line change
1
+ package config
2
+
3
+ const (
4
+ PinningTag = "Pinning"
5
+ RemoteServicesTag = "RemoteServices"
6
+ RemoteServicesSelector = PinningTag + "." + RemoteServicesTag
7
+ )
8
+
9
+ type Pinning struct {
10
+ RemoteServices map [string ]RemotePinningService
11
+ }
12
+
13
+ type RemotePinningService struct {
14
+ Api RemotePinningServiceApi
15
+ }
16
+
17
+ type RemotePinningServiceApi struct {
18
+ Endpoint string
19
+ Key string
20
+ }
You can’t perform that action at this time.
0 commit comments