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

feature request: 服务端使用sqlite做用户数据持久化 #348

Open
fregie opened this issue May 27, 2021 · 5 comments · May be fixed by #363
Open

feature request: 服务端使用sqlite做用户数据持久化 #348

fregie opened this issue May 27, 2021 · 5 comments · May be fixed by #363

Comments

@fregie
Copy link
Contributor

fregie commented May 27, 2021

mysql需要依赖外部服务,加上数据持久化的需求比较简单,可以考虑使用sqlite,不依赖外部服务。

@fregie
Copy link
Contributor Author

fregie commented May 27, 2021

建议一个方案:为目前statistic里的memory实现的Authenticator,增加一个数据持久化的interface,memory可以只用该interface{}进行数据持久化,而该interface{}可以使用mysql,sqlite等不同方式实现,非侵入,易拓展。
@Loyalsoldier

@Loyalsoldier
Copy link
Collaborator

欢迎 PR。

@ghost
Copy link

ghost commented Jun 1, 2021

#356

There you are.

@fregie
Copy link
Contributor Author

fregie commented Jun 1, 2021

#356

There you are.

@sousa-chinensis
Thank you!
But this is not what I want.This mysql module is for compatible with the origin trojan.What I need is a real-time data persistence feature,not a data syncer.

@Loyalsoldier
Copy link
Collaborator

Loyalsoldier commented Jun 2, 2021

配置上兼容原版 Trojan 就行了,代码和架构可以 breaking。

@fregie fregie linked a pull request Jun 10, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants