From 024eb3dfb3d2d86e3debb265958acf3ba170eb22 Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Fri, 4 Dec 2020 15:51:38 -0500 Subject: [PATCH 1/2] add remote pinning services config --- config/config.go | 1 + config/remotepin.go | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 config/remotepin.go diff --git a/config/config.go b/config/config.go index 5f6be8e5ac5c..7d44316abd33 100644 --- a/config/config.go +++ b/config/config.go @@ -33,6 +33,7 @@ type Config struct { Reprovider Reprovider Experimental Experiments Plugins Plugins + Pinning Pinning } const ( diff --git a/config/remotepin.go b/config/remotepin.go new file mode 100644 index 000000000000..9da2af1bf0b4 --- /dev/null +++ b/config/remotepin.go @@ -0,0 +1,20 @@ +package config + +const ( + PinningTag = "Pinning" + RemoteServicesTag = "RemoteServices" + RemoteServicesSelector = PinningTag + "." + RemoteServicesTag +) + +type Pinning struct { + RemoteServices map[string]RemotePinningService +} + +type RemotePinningService struct { + Api RemotePinningServiceApi +} + +type RemotePinningServiceApi struct { + Endpoint string + Key string +} From d8e013f99196b96b1ffa4fc8f4afb56feb02b641 Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Fri, 4 Dec 2020 15:52:59 -0500 Subject: [PATCH 2/2] go fmt --- config/bootstrap_peers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/bootstrap_peers.go b/config/bootstrap_peers.go index 55d0f3b822fe..27715843da0c 100644 --- a/config/bootstrap_peers.go +++ b/config/bootstrap_peers.go @@ -19,7 +19,7 @@ var DefaultBootstrapAddresses = []string{ "/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa", "/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb", "/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt", - "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io + "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io "/ip4/104.131.131.82/udp/4001/quic/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io }