Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.
/ go-p2pd Public archive

A daemon for libp2p implemented in Go.

Notifications You must be signed in to change notification settings

paralin/go-p2pd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-libp2pd

libp2p daemon with a control cli.

Table of Contents

Install

$ go get -u -v github.com/paralin/go-p2pd/cmd/p2pd

Optionally:

$ go get -u -v github.com/paralin/go-p2pd/cmd/p2pdctl

Usage

You can use the control commands prefixed with either p2pd ctl or p2pdctl depending on how you built the client.

Root p2pd Usage

NAME:
   p2pd - p2pd daemon and cli.

USAGE:
   p2pd [global options] command [command options] [arguments...]

AUTHOR:
   Christian Stewart <[email protected]>

COMMANDS:
     ctl      Ctl contains all control commands.
     daemon   starts the p2pd daemon
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help

p2pdctl node Usage

NAME:
   p2pdctl node - Contains all node-related subcommands.

USAGE:
   p2pdctl node command [command options] [arguments...]

COMMANDS:
     add     Adds a new node to the p2pd instance.
     start   Starts a previously created node.
     listen  Listen commands a started node to listen on an additional address.
     status  Status checks node's status.

OPTIONS:
   --help, -h  show help

Getting Started

Here is an example:

# Start the p2pd daemon
$ ./p2pd daemon --data-path=./data &
# Create a node
$ ./p2pd node add test
# Start it
$ ./p2pd node start test
# Tell it to listen on port 4001
$ ./p2pd node listen test /ip4/0.0.0.0/tcp/4001

Contribute

PRs are welcome! Feel free to join in. All welcome. Open an issue!

Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to libp2p are subject to the IPFS Code of Conduct.

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT © Christian Stewart

About

A daemon for libp2p implemented in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published