chat-app-backend

command module
v0.0.0-...-3cdc2b7 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

README

chat-app-backend

Design

Users can login from any device(s), each devie may have multiple login sessons, so an unique client contains an ip and user.

No log policy for messages

Synchronization

We dont store messages in database, so it is important to backup your history regularly.

TODO: add backup and resotre feature

Devices initialization

When user connected to backend server from a sub device, a new websocket connection is established.

Whenever a message received from message queue, backend server will push it to any active connections.

Devices termination

When user terminate a sub device, all consumer with corresponding channel should be deleted, as well as the nsqd channel

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
db

Jump to

Keyboard shortcuts

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