chat

command
v0.0.0-...-07570f6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 25 Imported by: 0

README

Chat

Chat is a proof of concept app that allows peers to join public conversations and send messages.

Env vars

  • NIMONA_PEER_PRIVATE_KEY - Private key for peer. (optional)
  • NIMONA_PEER_BIND_ADDRESS - Address (in the ip:port format) to bind sonar to. (optional)
  • NIMONA_PEER_BOOTSTRAPS - Bootstrap peers to use (in the publicKey@tcps:ip:port shorthand format). (optional)
  • NIMONA_CHAT_CHANNEL_HASH - Channel to join (optional)

Example

Create some keys for your peers.

go run ./cmd/keygen/main.go
LOG_LEVEL=fatal \
NIMONA_BIND_ADDRESS=0.0.0.0:18000 \
NIMONA_PEER_PRIVATE_KEY=<key1> \
go run ./examples/chat/*.go
LOG_LEVEL=fatal \
NIMONA_BIND_ADDRESS=0.0.0.0:18001 \
NIMONA_PEER_PRIVATE_KEY=<key2> \
go run ../examples/chat/*.go
LOG_LEVEL=fatal \
NIMONA_BIND_ADDRESS=0.0.0.0:18002 \
NIMONA_PEER_PRIVATE_KEY=<key3> \
go run ./examples/chat/*.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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