You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Unbewohnte
61e21e8309
|
3 years ago | |
---|---|---|
pages | 3 years ago | |
scripts | 3 years ago | |
src | 3 years ago | |
static | 3 years ago | |
.gitignore | 3 years ago | |
COPYING | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago |
README.md
gochat
A dead simple real time webchat with authorization using websockets
Building
make
or cd src/ && go build && mv gochat ..
Project structure
As you are probably here for reconnaissance reasons for your own project here's a quick overview of the structure:
pages
-> html pagesscripts
-> js files where chat.js is the "heavy-lifter" which actually implements the websocket chat logicstatic
-> icon, stylesheet for pagessrc/api
-> the fundament of backend logic, authorization, database and websocket handling,all necessary structs, constantssrc/log
-> a custom loggersrc/page
-> a shorcut function for handling html templatessrc/server
-> the main server struct that glues everything together. For a high-level inspection - refer theresrc/main.go
-> parse command line flags, set up logging and leave the rest for the server
License
GPLv3