增加dht的去中心化储存

This commit is contained in:
2025-10-21 15:29:43 +08:00
parent 248f9a28e7
commit ab2f099826
14 changed files with 517 additions and 87 deletions

View File

@@ -5,6 +5,7 @@ import (
_ "github.com/ayflying/p2p/internal/logic"
_ "github.com/ayflying/p2p/internal/packed"
"github.com/ayflying/p2p/internal/service"
"github.com/gogf/gf/v2/os/gfile"
//步骤1加载驱动
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
@@ -21,5 +22,9 @@ func main() {
// 启动系统托盘
service.OS().Load(consts.Name, consts.Name+"服务端", "manifest/images/favicon.ico")
if ok := gfile.Exists("runtime"); !ok {
gfile.Mkdir("runtime")
}
cmd.Main.Run(ctx)
}