gin+websocket+mongodb IM
WebSocket + MongoDB + MySQL + Redis
MySQL
MongoDB
Redis
Bhttps://www.bilibili.com/video/BV1BP4y1H7gV
https://blog.csdn.net/weixin_45304503/article/details/121787022
gin-chat-demo/
cache
conf
e
model
router
service
#debug,release
[service]
AppMode = debug
HttpPort = :3000
# 3000
[mysql]
Db = mysql
DbHost = ""
# mysqlip
DbPort = ""
# mysql,3306
DbUser = ""
# mysql user
DbPassWord = ""
# mysql password
DbName = ""
#
[redis]
RedisDb = ""
# redis
RedisAddr = ""
# redis
RedisPw = ""
# redis
RedisDbName = ""
# redis
[MongoDB]
MongoDBName = ""
MongoDBAddr = ""
MongoDBPwd = ""
MongoDBPort = ""
go mod tidy
go run main.go