Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

观后感 #1

Open
saileifeng opened this issue Sep 25, 2019 · 2 comments
Open

观后感 #1

saileifeng opened this issue Sep 25, 2019 · 2 comments

Comments

@saileifeng
Copy link

项目结构有问题

项目在本地创建的时候不应该是deercoder-chat,而是go/src/github.com/dreamlu/deercoder-chat。
go mod方式管理依赖库的话,按照你目前的项目结构,更新依赖是有问题的,因为没有引用包地址找不到。

readme描述

能不能贴一个整体架构图让大家一眼就看懂,我本来只是想看看核心聊天信息通信这块,结果还得把代码下载下来看,原谅我的chrome插件出问题了,无法在线浏览。

@dreamlu
Copy link
Owner

dreamlu commented Oct 22, 2019

1.go 1.12 版本go mod需要设置个GOPROXY[一些依赖在国外], go 1.13不用,
建议用阿里的export GOPROXY=https://mirrors.aliyun.com/goproxy/(go 1.13官方的还不是太稳定)
2.聊天:websocket,客户端和服务端建立websocket, 核心代码

@dreamlu dreamlu closed this as completed Oct 22, 2019
@dreamlu dreamlu reopened this Oct 22, 2019
@saileifeng
Copy link
Author

1.go 1.12 版本go mod需要设置个GOPROXY[一些依赖在国外], go 1.13不用,
建议用阿里的export GOPROXY=https://mirrors.aliyun.com/goproxy/(go 1.13官方的还不是太稳定)
2.聊天:websocket,客户端和服务端建立websocket, 核心代码

谢谢。
实时聊天这块可以考虑构建一个网状集群来处理,将消息主动push给对方,而不是存储于数据库中让客户端定时读取。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants