22 lines
523 B
TOML
22 lines
523 B
TOML
# ====== 插件注册信息(控制加载方式) ======
|
||
[workers]
|
||
type = "auth"
|
||
module = "plugins.auth"
|
||
factory = "create_workers"
|
||
cleanup = "cleanup"
|
||
count = 0
|
||
|
||
[worker]
|
||
name = "auth"
|
||
version = "0.1.0"
|
||
description = "鉴权管理"
|
||
config_version = "1.0"
|
||
defaults = { method = "GET", ttl = 30, timeout = 2.0, auth_required = true, cacheable = false }
|
||
|
||
[worker.registration]
|
||
router_prefix = "/auth"
|
||
tags = ["auth"]
|
||
|
||
# ====== Worker 运行时配置(由 lifespan_setup 传递给 create_workers) ======
|
||
[workers.config]
|