P2P-chat

command module
v0.0.0-...-2ce55d9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: MIT Imports: 5 Imported by: 0

README

P2P-chat

Directory Structure

.
├── README.md
├── main.go ................: Application entrypoint
├── common
│   └── iface
│       ├── consts.go ......: Common structs and default values
│       └── helpers.go .....: Helper functions
├── master
│   ├── main.go ............: Master node entrypoint
│   └── master.go ..........: Master node methods
└── peer
    ├── main.go ............: Peer node entrypoint
    ├── peer.go ............: Peer node methods
    └── chatbox.go .........: Terminal UI based on curses

Usage

  • Run go run main.go --type=master --port=<port_num> to run the master node.
  • Run go run main.go --type=peer --ip=<public_ip> --port=<port_num> --alias=<alias> to run a peer node.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

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