gochat

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

README

gochat

GoChat is a lightweight yet powerful chat server built with Go and the Gofr framework, designed for high scalability. It facilitates efficient message exchange over TCP, supporting multiple concurrent clients with minimal overhead.

Features

  • Send Messages to Multiple Recipients: Send messages to one or more recipients efficiently.
  • Spaces for Grouped Messages: Organize related messages within designated spaces for better conversation management.
  • High Write Throughput: Optimized for handling a large volume of messages efficiently.

Running a container

docker pull patilhn/gochat:v1.0.0
docker run -d -p 8000:8000 \
   -e CASS_HOST=<Cassandra Host> \
   -e CASS_KEYSPACE=<Cassandra Keyspace> \
   -e CASS_PORT=<Cassandra Port> \
   -e API_KEYS=<Server API Key> \
   patilhn/gochat:v1.0.0

Running code locally

  1. Go: Ensure that Go is installed on your system. You can download it from the official Go website.
  2. Clone the Repository:
    git clone https://github.com/hnpatil/gochat.git
    cd gochat
    
  3. Install Dependencies:
    go mod tidy
    
  4. Set Configuration
    Before running the application, set the required environment variables:
    export CASS_HOST=<Cassandra Host>
    export CASS_KEYSPACE=<Cassandra Keyspace>
    export CASS_PORT=<Cassandra Port>
    export API_KEYS=<Server API Key>
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
id
set
Package static Code generated by swaggo/swag.
Package static Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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