p2p

module
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2020 License: MIT

README

P2P

CI PkgGoDev

A gRPC based P2P file sharing system, written in Go.

Building

Needs Go 1.15.

make

Install

There are 2 supported methods of installing this project right now:

Go

Installing via go get could give you an unstable version of the project.

go get github.com/dawidd6/p2p/cmd/...
Docker

latest Docker image tag corresponds to the latest git tag in this repo. Specific image tags corresponding to git tags are available too.

docker pull dawidd6/p2p

Usage

  • p2p program to control the daemon.
  • p2pd program to start the daemon.
  • p2ptrackerd program to start the tracker.

Directories

Path Synopsis
cmd
Package cmd is just here, so we don't have to repeat ourselves
Package cmd is just here, so we don't have to repeat ourselves
p2p
pkg
config
Package config includes configuration options for the whole system
Package config includes configuration options for the whole system
daemon
Package daemon implements daemon with seed service
Package daemon implements daemon with seed service
hasher
Package hasher includes a hash.Hash convenient wrapper
Package hasher includes a hash.Hash convenient wrapper
piece
Package piece provides convenient functions for piece reading/writing
Package piece provides convenient functions for piece reading/writing
state
Package state includes torrent state struct
Package state includes torrent state struct
tasker
Package tasker includes a Task struct
Package tasker includes a Task struct
torrent
Package torrent provides convenient functions for Torrent type
Package torrent provides convenient functions for Torrent type
tracker
Package tracker implements tracker service
Package tracker implements tracker service
worker
Package worker implements a worker pool
Package worker implements a worker pool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL