├── .travis.yml ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── MAINTAINERS ├── README.md ├── bittorrent ├── bittorrent.go ├── client_id.go ├── client_id_test.go ├── event.go ├── event_test.go ├── params.go └── params_test.go ├── cmd └── chihaya │ ├── config.go │ └── main.go ├── dist ├── helm │ └── chihaya │ │ ├── .helmignore │ │ ├── Chart.yaml │ │ ├── templates │ │ ├── NOTES.txt │ │ ├── _helpers.tpl │ │ ├── configmap.yaml │ │ ├── deployment.yaml │ │ └── service.yaml │ │ └── values.yaml └── prometheus │ ├── chihaya.rules │ └── prometheus.yaml ├── docs ├── CNAME ├── index.html ├── middleware │ └── interval_variation.md └── storage │ └── memorybysubnet.md ├── example_config.yaml ├── frontend ├── frontend.go ├── http │ ├── bencode │ │ ├── bencode.go │ │ ├── decoder.go │ │ ├── decoder_test.go │ │ ├── encoder.go │ │ └── encoder_test.go │ ├── frontend.go │ ├── parser.go │ ├── writer.go │ └── writer_test.go └── udp │ ├── bytepool │ └── bytepool.go │ ├── connection_id.go │ ├── connection_id_test.go │ ├── frontend.go │ ├── parser.go │ ├── parser_test.go │ └── writer.go ├── glide.lock ├── glide.yaml ├── middleware ├── clientapproval │ └── clientapproval.go ├── hooks.go ├── jwt │ └── jwt.go ├── middleware.go ├── middleware_test.go ├── nya │ ├── nya.go │ ├── stats │ │ └── stats.go │ └── whitelist │ │ └── whitelist.go ├── pkg │ └── random │ │ ├── entropy.go │ │ ├── xorshift.go │ │ └── xorshift_test.go └── varinterval │ ├── varinterval.go │ └── varinterval_test.go ├── pkg ├── log │ └── log.go ├── prometheus │ └── server.go └── stop │ └── stop.go └── storage ├── memory ├── peer_store.go └── peer_store_test.go ├── memorybysubnet ├── peer_store.go └── peer_store_test.go ├── prometheus.go ├── storage.go ├── storage_bench.go └── storage_tests.go /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/LICENSE -------------------------------------------------------------------------------- /MAINTAINERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/MAINTAINERS -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/README.md -------------------------------------------------------------------------------- /bittorrent/bittorrent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/bittorrent/bittorrent.go -------------------------------------------------------------------------------- /bittorrent/client_id.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/bittorrent/client_id.go -------------------------------------------------------------------------------- /bittorrent/client_id_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/bittorrent/client_id_test.go -------------------------------------------------------------------------------- /bittorrent/event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/bittorrent/event.go -------------------------------------------------------------------------------- /bittorrent/event_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/bittorrent/event_test.go -------------------------------------------------------------------------------- /bittorrent/params.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/bittorrent/params.go -------------------------------------------------------------------------------- /bittorrent/params_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/bittorrent/params_test.go -------------------------------------------------------------------------------- /cmd/chihaya/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/cmd/chihaya/config.go -------------------------------------------------------------------------------- /cmd/chihaya/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/cmd/chihaya/main.go -------------------------------------------------------------------------------- /dist/helm/chihaya/.helmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/dist/helm/chihaya/.helmignore -------------------------------------------------------------------------------- /dist/helm/chihaya/Chart.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/dist/helm/chihaya/Chart.yaml -------------------------------------------------------------------------------- /dist/helm/chihaya/templates/NOTES.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/dist/helm/chihaya/templates/NOTES.txt -------------------------------------------------------------------------------- /dist/helm/chihaya/templates/_helpers.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/dist/helm/chihaya/templates/_helpers.tpl -------------------------------------------------------------------------------- /dist/helm/chihaya/templates/configmap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/dist/helm/chihaya/templates/configmap.yaml -------------------------------------------------------------------------------- /dist/helm/chihaya/templates/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/dist/helm/chihaya/templates/deployment.yaml -------------------------------------------------------------------------------- /dist/helm/chihaya/templates/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/dist/helm/chihaya/templates/service.yaml -------------------------------------------------------------------------------- /dist/helm/chihaya/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/dist/helm/chihaya/values.yaml -------------------------------------------------------------------------------- /dist/prometheus/chihaya.rules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/dist/prometheus/chihaya.rules -------------------------------------------------------------------------------- /dist/prometheus/prometheus.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/dist/prometheus/prometheus.yaml -------------------------------------------------------------------------------- /docs/CNAME: -------------------------------------------------------------------------------- 1 | chihaya.io -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/docs/index.html -------------------------------------------------------------------------------- /docs/middleware/interval_variation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/docs/middleware/interval_variation.md -------------------------------------------------------------------------------- /docs/storage/memorybysubnet.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/docs/storage/memorybysubnet.md -------------------------------------------------------------------------------- /example_config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/example_config.yaml -------------------------------------------------------------------------------- /frontend/frontend.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/frontend.go -------------------------------------------------------------------------------- /frontend/http/bencode/bencode.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/http/bencode/bencode.go -------------------------------------------------------------------------------- /frontend/http/bencode/decoder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/http/bencode/decoder.go -------------------------------------------------------------------------------- /frontend/http/bencode/decoder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/http/bencode/decoder_test.go -------------------------------------------------------------------------------- /frontend/http/bencode/encoder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/http/bencode/encoder.go -------------------------------------------------------------------------------- /frontend/http/bencode/encoder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/http/bencode/encoder_test.go -------------------------------------------------------------------------------- /frontend/http/frontend.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/http/frontend.go -------------------------------------------------------------------------------- /frontend/http/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/http/parser.go -------------------------------------------------------------------------------- /frontend/http/writer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/http/writer.go -------------------------------------------------------------------------------- /frontend/http/writer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/http/writer_test.go -------------------------------------------------------------------------------- /frontend/udp/bytepool/bytepool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/udp/bytepool/bytepool.go -------------------------------------------------------------------------------- /frontend/udp/connection_id.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/udp/connection_id.go -------------------------------------------------------------------------------- /frontend/udp/connection_id_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/udp/connection_id_test.go -------------------------------------------------------------------------------- /frontend/udp/frontend.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/udp/frontend.go -------------------------------------------------------------------------------- /frontend/udp/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/udp/parser.go -------------------------------------------------------------------------------- /frontend/udp/parser_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/udp/parser_test.go -------------------------------------------------------------------------------- /frontend/udp/writer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/frontend/udp/writer.go -------------------------------------------------------------------------------- /glide.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/glide.lock -------------------------------------------------------------------------------- /glide.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/glide.yaml -------------------------------------------------------------------------------- /middleware/clientapproval/clientapproval.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/clientapproval/clientapproval.go -------------------------------------------------------------------------------- /middleware/hooks.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/hooks.go -------------------------------------------------------------------------------- /middleware/jwt/jwt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/jwt/jwt.go -------------------------------------------------------------------------------- /middleware/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/middleware.go -------------------------------------------------------------------------------- /middleware/middleware_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/middleware_test.go -------------------------------------------------------------------------------- /middleware/nya/nya.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/nya/nya.go -------------------------------------------------------------------------------- /middleware/nya/stats/stats.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/nya/stats/stats.go -------------------------------------------------------------------------------- /middleware/nya/whitelist/whitelist.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/nya/whitelist/whitelist.go -------------------------------------------------------------------------------- /middleware/pkg/random/entropy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/pkg/random/entropy.go -------------------------------------------------------------------------------- /middleware/pkg/random/xorshift.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/pkg/random/xorshift.go -------------------------------------------------------------------------------- /middleware/pkg/random/xorshift_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/pkg/random/xorshift_test.go -------------------------------------------------------------------------------- /middleware/varinterval/varinterval.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/varinterval/varinterval.go -------------------------------------------------------------------------------- /middleware/varinterval/varinterval_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/middleware/varinterval/varinterval_test.go -------------------------------------------------------------------------------- /pkg/log/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/pkg/log/log.go -------------------------------------------------------------------------------- /pkg/prometheus/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/pkg/prometheus/server.go -------------------------------------------------------------------------------- /pkg/stop/stop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/pkg/stop/stop.go -------------------------------------------------------------------------------- /storage/memory/peer_store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/storage/memory/peer_store.go -------------------------------------------------------------------------------- /storage/memory/peer_store_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/storage/memory/peer_store_test.go -------------------------------------------------------------------------------- /storage/memorybysubnet/peer_store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/storage/memorybysubnet/peer_store.go -------------------------------------------------------------------------------- /storage/memorybysubnet/peer_store_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/storage/memorybysubnet/peer_store_test.go -------------------------------------------------------------------------------- /storage/prometheus.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/storage/prometheus.go -------------------------------------------------------------------------------- /storage/storage.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/storage/storage.go -------------------------------------------------------------------------------- /storage/storage_bench.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/storage/storage_bench.go -------------------------------------------------------------------------------- /storage/storage_tests.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyaadevs/chihaya/HEAD/storage/storage_tests.go --------------------------------------------------------------------------------