gochat

command module
v0.0.0-...-2479739 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 8 Imported by: 0

README

GoChat

Basic chat room application using WebSockets, gRPC and a terminal UI. Requires Go 1.18+.

Installation

Go install
go install -a github.com/marcelbeumer/go-playground/gochat@latest
Docker
docker build -t gochat .
docker run -it --rm --network host gochat

Run from source

go run .

Usage

To run a server:

gochat server -V # websockets
gochat server -V --grpc # gRPC

To connect a client:

gochat client -u Mario # websockets
gochat client -u Mario --grpc # gRPC

For more options and details see:

gochat --help

TODO

  • Try to use copygen for mapping gRPC structs.
  • Write more tests.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
chat
Package chat implements a basic chat room application without protocol specifics.
Package chat implements a basic chat room application without protocol specifics.
log
util/test
Package test implements some test helpers.
Package test implements some test helpers.

Jump to

Keyboard shortcuts

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