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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址