modify: 更新目录结构
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
# ====== 插件注册信息(控制加载方式) ======
|
||||
[workers]
|
||||
type = "example"
|
||||
module = "plugins.example"
|
||||
factory = "create_workers"
|
||||
cleanup = "cleanup"
|
||||
count = 3
|
||||
|
||||
[worker]
|
||||
name = "example"
|
||||
version = "0.1.0"
|
||||
@@ -8,3 +16,7 @@ defaults = { method = "GET", ttl = 30, timeout = 2.0, auth_required = true, cach
|
||||
[worker.registration]
|
||||
router_prefix = "/calc"
|
||||
tags = ["example"]
|
||||
|
||||
# ====== Worker 运行时配置(由 lifespan_setup 传递给 create_workers) ======
|
||||
[workers.config]
|
||||
data_dir = "./data"
|
||||
|
||||
Reference in New Issue
Block a user