modify: 更新目录结构

This commit is contained in:
2026-08-03 16:56:10 +08:00
parent 17a94cfc37
commit 92e367d24f
5 changed files with 80 additions and 58 deletions
+12 -1
View File
@@ -1,3 +1,11 @@
# ====== 插件注册信息(控制加载方式) ======
[workers]
type = "auth"
module = "plugins.auth"
factory = "create_workers"
cleanup = "cleanup"
count = 3
[worker]
name = "auth"
version = "0.1.0"
@@ -7,4 +15,7 @@ defaults = { method = "GET", ttl = 30, timeout = 2.0, auth_required = true, cach
[worker.registration]
router_prefix = "/auth"
tags = ["auth"]
tags = ["auth"]
# ====== Worker 运行时配置(由 lifespan_setup 传递给 create_workers) ======
[workers.config]