Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit 1a8f582

Browse files
authored
Merge pull request #113 from ipfs/petar/remotepin
add remote pinning services config
2 parents 50e4327 + 84cb43b commit 1a8f582

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

bootstrap_peers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var DefaultBootstrapAddresses = []string{
1919
"/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa",
2020
"/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb",
2121
"/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
2323
"/ip4/104.131.131.82/udp/4001/quic/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io
2424
}
2525

config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type Config struct {
3333
Reprovider Reprovider
3434
Experimental Experiments
3535
Plugins Plugins
36+
Pinning Pinning
3637
}
3738

3839
const (

remotepin.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
}

0 commit comments

Comments
 (0)