├── .gcloudignore ├── .gitignore ├── README.md ├── scripts └── cycle-poll.sh ├── go.mod ├── static └── index.html ├── Makefile ├── Dockerfile ├── dht ├── dht_test.go └── dht_node.go ├── main.go └── go.sum /.gcloudignore: -------------------------------------------------------------------------------- 1 | !vendor 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | vendor 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | dht-test-cloud-run 2 | ================== 3 | 4 | Testing DHT from Cloud Run. 5 | 6 | # License 7 | 8 | MIT/Apache-2 ([Permissive License Stack](https://protocol.ai/blog/announcing-the-permissive-license-stack/)) 9 | -------------------------------------------------------------------------------- /scripts/cycle-poll.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | set -x 4 | 5 | while true; do 6 | date 7 | curl -X POST https://dht-test-svuagpbosa-uc.a.run.app/test 8 | curl -X POST https://dht-test-svuagpbosa-ue.a.run.app/test 9 | curl -X POST https://dht-test-svuagpbosa-ew.a.run.app/test 10 | curl -X POST https://dht-test-svuagpbosa-an.a.run.app/test 11 | done 12 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/jimpick/dht-test-cloud-run 2 | 3 | require ( 4 | github.com/ipfs/go-ds-leveldb v0.0.2 5 | github.com/ipfs/go-ipfs-config v0.0.6 6 | github.com/ipfs/go-ipns v0.0.1 7 | github.com/libp2p/go-eventbus v0.1.0 // indirect 8 | github.com/libp2p/go-libp2p v0.3.0 9 | github.com/libp2p/go-libp2p-core v0.2.2 10 | github.com/libp2p/go-libp2p-host v0.1.0 11 | github.com/libp2p/go-libp2p-kad-dht v0.1.1 12 | github.com/libp2p/go-libp2p-record v0.1.1 13 | ) 14 | -------------------------------------------------------------------------------- /static/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |