golang-mongodb-chat

command module
v0.0.0-...-61c5d39 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 6 Imported by: 0

README

A toy chat app

Overview

The app contains 2 parts:

  • Persistent structs: User, Channel, Message

These models holds information about User, Channel & Message from channels when user send messages, data is saved to Mongodb.

  • Websocket structs: Client, Room

These are responsible for opening Websocket connection to receive message from user & broadcast it to all client in a specific channel.

Get started

go get github.com/manhtai/golang-mongodb-chat
dep ensure
go run main.go

SSL & Live reload support

go get github.com/codegangsta/gin
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem
gin --certFile cert.pem --keyFile key.pem --all main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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