command
module
Version:
v0.0.0-...-61c5d39
Opens a new window with list of versions in this module.
Published: Nov 14, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.